]> granicus.if.org Git - ejabberd/commitdiff
Increase start-up/stop timeout in systemd unit
authorHolger Weiss <holger@zedat.fu-berlin.de>
Thu, 7 Jun 2018 15:40:05 +0000 (17:40 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Thu, 7 Jun 2018 15:40:05 +0000 (17:40 +0200)
On slow systems, it can take quite a while for "ejabberdctl started"
and/or "ejabberdctl stopped" to return.

ejabberd.service.template

index 63100cb5e031d13e4450457028b606604aa2d33b..d32353b417f9e43abd6b9796f2326a6491cebbdd 100644 (file)
@@ -13,6 +13,7 @@ ExecStart=/bin/sh -c '@ctlscriptpath@/ejabberdctl start && @ctlscriptpath@/ejabb
 ExecStop=/bin/sh -c '@ctlscriptpath@/ejabberdctl stop && @ctlscriptpath@/ejabberdctl stopped'
 ExecReload=@ctlscriptpath@/ejabberdctl reload_config
 PrivateDevices=true
+TimeoutSec=300
 
 [Install]
 WantedBy=multi-user.target