From 3c0dd1561623dab53148566ce6d078bb2be831fd Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Mon, 14 Jun 2021 08:13:42 +0900 Subject: [PATCH] Add `RuntimeDirectory` for sockets --- systemd/matrix-puppeteer-line-chrome.service | 4 +++- systemd/matrix-puppeteer-line.service | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/systemd/matrix-puppeteer-line-chrome.service b/systemd/matrix-puppeteer-line-chrome.service index 1ccc647..179e612 100644 --- a/systemd/matrix-puppeteer-line-chrome.service +++ b/systemd/matrix-puppeteer-line-chrome.service @@ -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 \ No newline at end of file diff --git a/systemd/matrix-puppeteer-line.service b/systemd/matrix-puppeteer-line.service index aa9fe10..ff1f259 100644 --- a/systemd/matrix-puppeteer-line.service +++ b/systemd/matrix-puppeteer-line.service @@ -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 \ No newline at end of file