Browse Source

Add `RuntimeDirectory` for sockets

Cristian Le 2 months ago
parent
commit
9d4f2dafac
2 changed files with 6 additions and 2 deletions
  1. +3
    -1
      systemd/matrix-puppeteer-line-chrome.service
  2. +3
    -1
      systemd/matrix-puppeteer-line.service

+ 3
- 1
systemd/matrix-puppeteer-line-chrome.service 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

+ 3
- 1
systemd/matrix-puppeteer-line.service 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

Loading…
Cancel
Save