mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-12 15:57:31 +01:00
00534d4566
On slow systems, it can take quite a while for "ejabberdctl started" and/or "ejabberdctl stopped" to return.
20 lines
471 B
Plaintext
20 lines
471 B
Plaintext
[Unit]
|
|
Description=XMPP Server
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
User=ejabberd
|
|
Group=ejabberd
|
|
LimitNOFILE=65536
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
ExecStart=/bin/sh -c '@ctlscriptpath@/ejabberdctl start && @ctlscriptpath@/ejabberdctl started'
|
|
ExecStop=/bin/sh -c '@ctlscriptpath@/ejabberdctl stop && @ctlscriptpath@/ejabberdctl stopped'
|
|
ExecReload=@ctlscriptpath@/ejabberdctl reload_config
|
|
PrivateDevices=true
|
|
TimeoutSec=300
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|