mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
23 lines
506 B
Plaintext
23 lines
506 B
Plaintext
[Unit]
|
|
Description=XMPP Server
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=notify
|
|
User=@installuser@
|
|
Group=@installuser@
|
|
LimitNOFILE=65536
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
WatchdogSec=30
|
|
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
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|