mirror of
https://github.com/processone/ejabberd
synced 2025-10-02 17:29:27 +02:00

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.
21 lines
491 B
Text
21 lines
491 B
Text
[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
|