mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Add script for systemd (Guthub #434)
This commit is contained in:
parent
0c0947a241
commit
e0ffcbe45d
17
ejabberd.service.template
Normal file
17
ejabberd.service.template
Normal 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
|
Loading…
Reference in New Issue
Block a user