Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2016-10-20 01:27:50 +0300
committerHolger Weiss <holger@zedat.fu-berlin.de>2016-10-20 01:27:50 +0300
commit1bdbe54442098ed4c54219de834f22109a4e9868 (patch)
tree8905b9efa0fb75f6d90a5b607fd31b0abc6740a0 /ejabberd.service.template
parenta5e737157c2e2b17f745334441a0aa59df08c0a6 (diff)
Let systemd stop ejabberd gracefully
Make sure the "ExecStop" command line blocks until ejabberd is actually stopped. This prevents systemd from killing the ejabberd process(es) immediately. Also, let the "ExecStart" command line block until ejabberd's startup is completed. This makes sure that services which depend on ejabberd aren't started up too early.
Diffstat (limited to 'ejabberd.service.template')
-rw-r--r--ejabberd.service.template4
1 files changed, 2 insertions, 2 deletions
diff --git a/ejabberd.service.template b/ejabberd.service.template
index 560a93265..a70d2254d 100644
--- a/ejabberd.service.template
+++ b/ejabberd.service.template
@@ -9,8 +9,8 @@ Group=ejabberd
LimitNOFILE=65536
Restart=on-failure
RestartSec=5
-ExecStart=@ctlscriptpath@/ejabberdctl start
-ExecStop=@ctlscriptpath@/ejabberdctl stop
+ExecStart=/bin/sh -c '@ctlscriptpath@/ejabberdctl start && @ctlscriptpath@/ejabberdctl started'
+ExecStop=/bin/sh -c '@ctlscriptpath@/ejabberdctl stop && @ctlscriptpath@/ejabberdctl stopped'
PrivateDevices=true
ProtectSystem=full