mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-02 16:37:52 +01:00
4843cd432f
Some users reported ejabberd being restarted by systemd due to missing watchdog pings despite the actual service operating just fine. So far, we weren't able to track down the issue, so we'll no longer enable the watchdog in our example service unit. Closes #4054.
22 lines
491 B
Plaintext
22 lines
491 B
Plaintext
[Unit]
|
|
Description=XMPP Server
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=notify
|
|
User=@installuser@
|
|
Group=@installuser@
|
|
LimitNOFILE=65536
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
ExecStart=@ctlscriptpath@/ejabberdctl foreground
|
|
ExecStop=/bin/sh -c '@ctlscriptpath@/ejabberdctl stop && @ctlscriptpath@/ejabberdctl stopped'
|
|
ExecReload=@ctlscriptpath@/ejabberdctl reload_config
|
|
NotifyAccess=all
|
|
PrivateDevices=true
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
TimeoutSec=300
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|