24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-28 22:52:27 +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 User=ejabberd
Group=ejabberd Group=ejabberd
LimitNOFILE=16000 LimitNOFILE=16000
Restart=on-failure
RestartSec=5 RestartSec=5
ExecStart=@ctlscriptpath@/ejabberdctl start ExecStart=@ctlscriptpath@/ejabberdctl start
ExecStop=@ctlscriptpath@/ejabberdctl stop ExecStop=@ctlscriptpath@/ejabberdctl stop