Initial Systemd services
This commit is contained in:
parent
0d849cf2bb
commit
846285e5b7
11
systemd/matrix-puppeteer-line-chrome.service
Normal file
11
systemd/matrix-puppeteer-line-chrome.service
Normal 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
|
6
systemd/matrix-puppeteer-line-chrome.target
Normal file
6
systemd/matrix-puppeteer-line-chrome.target
Normal 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
|
12
systemd/matrix-puppeteer-line.service
Normal file
12
systemd/matrix-puppeteer-line.service
Normal 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
|
Loading…
Reference in New Issue
Block a user