Add script for systemd (Guthub #434)

This commit is contained in:
Christophe Romain 2015-02-23 15:52:18 +01:00
parent 0c0947a241
commit e0ffcbe45d
1 changed files with 17 additions and 0 deletions

17
ejabberd.service.template Normal file
View File

@ -0,0 +1,17 @@
[Unit]
Description=XMPP Server
After=network.target
[Service]
User=ejabberd
Group=ejabberd
LimitNOFILE=16000
RestartSec=5
ExecStart=/bin/sh @ctlscriptpath@/ejabberdctl start
ExecStop=@ctlscriptpath@/ejabberdctl stop
ExecReload=@ctlscriptpath@/ejabberdctl reload_config
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target