mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01: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:
parent
686305bb21
commit
7621564839
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user