From 20bec238c99c95fdd262fdcfc3f3c27db8f4149b Mon Sep 17 00:00:00 2001 From: Florent Date: Sun, 12 Sep 2021 17:24:08 +0200 Subject: [PATCH] Fix permissions for systemd service (needs AF_NETLINK) --- conf/systemd.service | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index f07c0c8..8d72350 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -1,6 +1,6 @@ [Unit] Description=Discord-Matrix daemon -After=network.target +After=network.target matrix-synapse.target [Service] Type=simple @@ -9,7 +9,7 @@ Environment="__YNH_NODE_LOAD_PATH__" User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/ -ExecStart=__YNH_NPM__ start -- -f __APP__.yaml +ExecStart=__YNH_NPM__ start -- -f __FINALPATH__/__APP__.yaml StandardOutput=syslog StandardError=syslog @@ -20,7 +20,7 @@ StandardError=syslog NoNewPrivileges=yes PrivateTmp=yes PrivateDevices=yes -RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 +RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK RestrictNamespaces=yes RestrictRealtime=yes DevicePolicy=closed