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