24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-16 22:05:29 +02: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
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