]> granicus.if.org Git - ejabberd/commitdiff
Let systemd restart ejabberd on failure
authorHolger Weiss <holger@zedat.fu-berlin.de>
Wed, 19 Oct 2016 21:35:22 +0000 (23:35 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Wed, 19 Oct 2016 21:35:22 +0000 (23:35 +0200)
The "RestartSec=5" setting has no effect if "Restart" is not also
specified.

ejabberd.service.template

index 7322e07c3852a4ed68cc87eb7e7fcc8af4c35246..ff159f85c14e65e0d9b23e89b5e3bd9e40b0bcca 100644 (file)
@@ -7,6 +7,7 @@ Type=forking
 User=ejabberd
 Group=ejabberd
 LimitNOFILE=16000
+Restart=on-failure
 RestartSec=5
 ExecStart=@ctlscriptpath@/ejabberdctl start
 ExecStop=@ctlscriptpath@/ejabberdctl stop