Initial Systemd services

This commit is contained in:
Cristian Le 2021-05-19 10:08:16 +09:00
parent 0d849cf2bb
commit 846285e5b7
Signed by untrusted user: lecris
GPG Key ID: CF44633677009A02
3 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,11 @@
[Unit]
Description=Matrix-puppeteer-line Chrome backend
PartOf=matrix-puppeteer-line-chrome.target
[Service]
; User=matrix
WorkingDirectory=/opt/synapse/bridges/matrix-puppeteer-line/puppet
ExecStart=/bin/xvfb-run /usr/bin/node src/main.js
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,6 @@
[Unit]
Description=Matrix puppeteer line bridge target
Requires=multi-user.target network.target
After=multi-user.target network.target
BindsTo=matrix-puppeteer-line-chrome.service
PartOf=matrix-puppeteer-line.service

View File

@ -0,0 +1,12 @@
[Unit]
Description=Matrix-puppeteer-line bridge
Requires=matrix-puppeteer-line-chrome.target
After=matrix-puppeteer-line-chrome.target
[Service]
; User=matrix
WorkingDirectory=/opt/synapse/bridges/matrix-puppeteer-line
ExecStart=/opt/synapse/bridges/matrix-puppeteer-line/.venv/bin/python -m matrix_puppeteer_line
[Install]
WantedBy=multi-user.target