]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Switch systemd service to be non-forking & avoid using the helper.
authorSadie Powell <sadie@witchery.services>
Tue, 28 Jul 2020 08:05:08 +0000 (09:05 +0100)
committerSadie Powell <sadie@witchery.services>
Tue, 28 Jul 2020 15:35:51 +0000 (16:35 +0100)
make/template/inspircd.service

index 39c7d23e0f12ae9f1180082ff9dc6b59008fc73b..a389d488b420c476178139401b04dfec22d85604 100644 (file)
@@ -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@