25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Specify "ExecReload" command in systemd unit

Now that "ejabberdctl reload_config" works the way most admins would
expect, expose the command via systemd.
This commit is contained in:
Holger Weiss 2017-02-23 18:16:56 +01:00
parent e7901f9d70
commit 519f3db6b6

View File

@ -11,6 +11,7 @@ Restart=on-failure
RestartSec=5 RestartSec=5
ExecStart=/bin/sh -c '@ctlscriptpath@/ejabberdctl start && @ctlscriptpath@/ejabberdctl started' ExecStart=/bin/sh -c '@ctlscriptpath@/ejabberdctl start && @ctlscriptpath@/ejabberdctl started'
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
PrivateDevices=true PrivateDevices=true
ProtectSystem=full ProtectSystem=full