Add `RuntimeDirectory` for sockets

This commit is contained in:
Cristian Le 2021-06-14 08:13:42 +09:00
parent 4172541e9b
commit 3c0dd15616
Signed by: lecris
GPG Key ID: CF44633677009A02
2 changed files with 6 additions and 2 deletions

View File

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

View File

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