24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-16 22:05:29 +02:00

Let systemd restart ejabberd on failure

The "RestartSec=5" setting has no effect if "Restart" is not also
specified.
This commit is contained in:
Holger Weiss 2016-10-19 23:35:22 +02:00
parent 686305bb21
commit 7621564839

View 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