mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Merge pull request #3429 from mtdcr/systemd-foreground
Let systemd start ejabberd in foreground
This commit is contained in:
commit
f48f9fee2e
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue