]> granicus.if.org Git - ejabberd/commitdiff
Specify "ExecReload" command in systemd unit
authorHolger Weiss <holger@zedat.fu-berlin.de>
Thu, 23 Feb 2017 17:16:56 +0000 (18:16 +0100)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Thu, 23 Feb 2017 17:16:56 +0000 (18:16 +0100)
Now that "ejabberdctl reload_config" works the way most admins would
expect, expose the command via systemd.

ejabberd.service.template

index a70d2254d7916255dc5422dac5d5002da641daec..542f57a3d2e359f501200cb1e116718c36dbc52a 100644 (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