25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00
xmpp.chapril.org-ejabberd/ejabberd.service.template

22 lines
491 B
Plaintext
Raw Normal View History

2015-02-23 15:52:18 +01:00
[Unit]
Description=XMPP Server
After=network.target
[Service]
Type=notify
User=@installuser@
Group=@installuser@
LimitNOFILE=65536
Restart=on-failure
2015-02-23 15:52:18 +01:00
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
2015-02-23 15:52:18 +01:00
[Install]
WantedBy=multi-user.target