Use "Type=forking" in systemd unit
ejabberd is not a "oneshot" process.
This commit is contained in:
parent
c3b62d2f75
commit
686305bb21
|
@ -3,6 +3,7 @@ Description=XMPP Server
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Type=forking
|
||||||
User=ejabberd
|
User=ejabberd
|
||||||
Group=ejabberd
|
Group=ejabberd
|
||||||
LimitNOFILE=16000
|
LimitNOFILE=16000
|
||||||
|
@ -10,8 +11,6 @@ RestartSec=5
|
||||||
ExecStart=@ctlscriptpath@/ejabberdctl start
|
ExecStart=@ctlscriptpath@/ejabberdctl start
|
||||||
ExecStop=@ctlscriptpath@/ejabberdctl stop
|
ExecStop=@ctlscriptpath@/ejabberdctl stop
|
||||||
ExecReload=@ctlscriptpath@/ejabberdctl reload_config
|
ExecReload=@ctlscriptpath@/ejabberdctl reload_config
|
||||||
Type=oneshot
|
|
||||||
RemainAfterExit=yes
|
|
||||||
PrivateDevices=true
|
PrivateDevices=true
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue