diff --git a/conf/nginx.conf b/conf/nginx.conf index 24edbcb..0119228 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -16,5 +16,4 @@ location / { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; - } diff --git a/conf/systemd.service b/conf/systemd.service index dc1e7de..1bcd5fc 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -1,17 +1,13 @@ [Unit] Description=Dispatch IRC client -Wants=network-online.target -After=network-online.target +After=network.target [Service] Type=simple User=__APP__ -Group=nogroup +Group=__APP__ +WorkingDirectory=__FINALPATH__/ ExecStart=__FINALPATH__/dispatch -Restart=on-failure -RestartSec=5 -StartLimitInterval=60s -StartLimitBurst=3 [Install] -WantedBy=default.target +WantedBy=multi-user.target