mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +01:00
Merge pull request #3429 from mtdcr/systemd-foreground
Let systemd start ejabberd in foreground
This commit is contained in:
commit
f48f9fee2e
@ -3,13 +3,12 @@ Description=XMPP Server
|
|||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
|
||||||
User=ejabberd
|
User=ejabberd
|
||||||
Group=ejabberd
|
Group=ejabberd
|
||||||
LimitNOFILE=65536
|
LimitNOFILE=65536
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
ExecStart=/bin/sh -c '@ctlscriptpath@/ejabberdctl start && @ctlscriptpath@/ejabberdctl started'
|
ExecStart=@ctlscriptpath@/ejabberdctl foreground
|
||||||
ExecStop=/bin/sh -c '@ctlscriptpath@/ejabberdctl stop && @ctlscriptpath@/ejabberdctl stopped'
|
ExecStop=/bin/sh -c '@ctlscriptpath@/ejabberdctl stop && @ctlscriptpath@/ejabberdctl stopped'
|
||||||
ExecReload=@ctlscriptpath@/ejabberdctl reload_config
|
ExecReload=@ctlscriptpath@/ejabberdctl reload_config
|
||||||
PrivateDevices=true
|
PrivateDevices=true
|
||||||
|
Loading…
Reference in New Issue
Block a user