From 519f3db6b63dc9cca8b00d1a6c218b46e6462c09 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Thu, 23 Feb 2017 18:16:56 +0100 Subject: Specify "ExecReload" command in systemd unit Now that "ejabberdctl reload_config" works the way most admins would expect, expose the command via systemd. --- ejabberd.service.template | 1 + 1 file changed, 1 insertion(+) (limited to 'ejabberd.service.template') diff --git a/ejabberd.service.template b/ejabberd.service.template index a70d2254d..542f57a3d 100644 --- a/ejabberd.service.template +++ b/ejabberd.service.template @@ -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 -- cgit v1.2.3