summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-07-28 09:05:08 +0100
committerSadie Powell <sadie@witchery.services>2020-07-28 16:35:51 +0100
commit5d8dc98dfad1e13e840ea0322fb624dc8397fddd (patch)
treec2c3e889876f830742530dd44a0d70ccfc2da90f
parentf953c431d5d90c1539a8778dcec32146f4cab36c (diff)
Switch systemd service to be non-forking & avoid using the helper.
-rw-r--r--make/template/inspircd.service8
1 files changed, 3 insertions, 5 deletions
diff --git a/make/template/inspircd.service b/make/template/inspircd.service
index 39c7d23e0..a389d488b 100644
--- a/make/template/inspircd.service
+++ b/make/template/inspircd.service
@@ -27,12 +27,10 @@ After=network-online.target
Wants=network-online.target
[Service]
-ExecReload=@SCRIPT_DIR@/inspircd rehash
-ExecStart=@SCRIPT_DIR@/inspircd start
-ExecStop=@SCRIPT_DIR@/inspircd stop
-PIDFile=@DATA_DIR@/inspircd.pid
+ExecReload=/bin/kill -HUP $MAINPID
+ExecStart=@BINARY_DIR@/inspircd --nofork --nopid
Restart=on-failure
-Type=forking
+Type=simple
User=@USER@
Group=@GROUP@