mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
7621564839
The "RestartSec=5" setting has no effect if "Restart" is not also specified.
20 lines
371 B
Plaintext
20 lines
371 B
Plaintext
[Unit]
|
|
Description=XMPP Server
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
User=ejabberd
|
|
Group=ejabberd
|
|
LimitNOFILE=16000
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
ExecStart=@ctlscriptpath@/ejabberdctl start
|
|
ExecStop=@ctlscriptpath@/ejabberdctl stop
|
|
ExecReload=@ctlscriptpath@/ejabberdctl reload_config
|
|
PrivateDevices=true
|
|
ProtectSystem=full
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|