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
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ Restart=on-failure
RestartSec=5
ExecStart=/bin/sh -c '@ctlscriptpath@/ejabberdctl start && @ctlscriptpath@/ejabberdctl started'
ExecStop=/bin/sh -c '@ctlscriptpath@/ejabberdctl stop && @ctlscriptpath@/ejabberdctl stopped'
ExecReload=@ctlscriptpath@/ejabberdctl reload_config
PrivateDevices=true
ProtectSystem=full