From 880cf7e34785e9bccfdd32de8d74cf027cbd296b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 30 Aug 2021 11:42:05 +0200 Subject: [PATCH] Fix --- conf/nginx.conf | 1 - conf/systemd.service | 12 ++++-------- 2 files changed, 4 insertions(+), 9 deletions(-) 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