forked from fair/matrix-puppeteer-line
Initial Systemd services
This commit is contained in:
parent
0d849cf2bb
commit
9aceae2317
|
@ -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
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue