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
1 changed files with 1 additions and 0 deletions

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