Systemd services #13

Closed
lecris wants to merge 4 commits from systemd into systemd
3 changed files with 29 additions and 0 deletions
Showing only changes of commit 846285e5b7 - Show all commits

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