]> granicus.if.org Git - ejabberd/commitdiff
Use "Type=forking" in systemd unit
authorHolger Weiss <holger@zedat.fu-berlin.de>
Wed, 19 Oct 2016 21:32:07 +0000 (23:32 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Wed, 19 Oct 2016 21:32:07 +0000 (23:32 +0200)
ejabberd is not a "oneshot" process.

ejabberd.service.template

index 4a2635776a6b820c809e73928b854363ab6928da..7322e07c3852a4ed68cc87eb7e7fcc8af4c35246 100644 (file)
@@ -3,6 +3,7 @@ Description=XMPP Server
 After=network.target
 
 [Service]
+Type=forking
 User=ejabberd
 Group=ejabberd
 LimitNOFILE=16000
@@ -10,8 +11,6 @@ RestartSec=5
 ExecStart=@ctlscriptpath@/ejabberdctl start
 ExecStop=@ctlscriptpath@/ejabberdctl stop
 ExecReload=@ctlscriptpath@/ejabberdctl reload_config
-Type=oneshot
-RemainAfterExit=yes
 PrivateDevices=true
 ProtectSystem=full