2015-02-23 15:52:18 +01:00
|
|
|
[Unit]
|
|
|
|
Description=XMPP Server
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2016-10-19 23:32:07 +02:00
|
|
|
Type=forking
|
2015-02-23 15:52:18 +01:00
|
|
|
User=ejabberd
|
|
|
|
Group=ejabberd
|
2016-10-20 00:12:02 +02:00
|
|
|
LimitNOFILE=65536
|
2016-10-19 23:35:22 +02:00
|
|
|
Restart=on-failure
|
2015-02-23 15:52:18 +01:00
|
|
|
RestartSec=5
|
2016-10-20 00:27:50 +02:00
|
|
|
ExecStart=/bin/sh -c '@ctlscriptpath@/ejabberdctl start && @ctlscriptpath@/ejabberdctl started'
|
|
|
|
ExecStop=/bin/sh -c '@ctlscriptpath@/ejabberdctl stop && @ctlscriptpath@/ejabberdctl stopped'
|
2017-02-23 18:16:56 +01:00
|
|
|
ExecReload=@ctlscriptpath@/ejabberdctl reload_config
|
2016-06-28 23:02:41 +02:00
|
|
|
PrivateDevices=true
|
|
|
|
ProtectSystem=full
|
2015-02-23 15:52:18 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|