Systemd services #13

Closed
lecris wants to merge 4 commits from systemd into systemd
2 changed files with 6 additions and 2 deletions
Showing only changes of commit 3c0dd15616 - Show all commits

View File

@ -3,11 +3,13 @@ Description=Matrix-puppeteer-line Chrome backend
PartOf=matrix-puppeteer-line-chrome.target PartOf=matrix-puppeteer-line-chrome.target
[Service] [Service]
; User=matrix ; User=matrix-line
; Group=matrix
Type=notify Type=notify
NotifyAccess=all NotifyAccess=all
WorkingDirectory=/opt/synapse/bridges/matrix-puppeteer-line/puppet WorkingDirectory=/opt/synapse/bridges/matrix-puppeteer-line/puppet
ExecStart=/bin/xvfb-run /usr/bin/node src/main.js ExecStart=/bin/xvfb-run /usr/bin/node src/main.js
RuntimeDirectory=matrix/puppeteer-line
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -4,9 +4,11 @@ BindsTo=matrix-puppeteer-line-chrome.target
After=matrix-puppeteer-line-chrome.target After=matrix-puppeteer-line-chrome.target
[Service] [Service]
; User=matrix ; User=matrix-line
; Group=matrix
WorkingDirectory=/opt/synapse/bridges/matrix-puppeteer-line WorkingDirectory=/opt/synapse/bridges/matrix-puppeteer-line
ExecStart=/opt/synapse/bridges/matrix-puppeteer-line/.venv/bin/python -m matrix_puppeteer_line ExecStart=/opt/synapse/bridges/matrix-puppeteer-line/.venv/bin/python -m matrix_puppeteer_line
RuntimeDirectory=matrix/puppeteer-line
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target