[Unit] Description=A distributed, fault-tolerant Jabber/XMPP server After=epmd.service network.target Requires=epmd.service [Service] Type=notify User=ejabberd Group=ejabberd LimitNOFILE=65536 Restart=on-failure RestartSec=5 WatchdogSec=30 ExecStart=/usr/sbin/ejabberdctl foreground ExecStop=/bin/sh -c '/usr/sbin/ejabberdctl stop && /usr/sbin/ejabberdctl stopped' ExecReload=/usr/sbin/ejabberdctl reload_config NotifyAccess=all PrivateDevices=true AmbientCapabilities=CAP_NET_BIND_SERVICE TimeoutSec=300 [Install] WantedBy=multi-user.target