[packages/ejabberd] - stop kindly

arekm arekm at pld-linux.org
Wed Oct 15 10:06:48 CEST 2014


commit 26c7f267de901f0a35c1c02e04e98d54c54ba8c6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Oct 15 10:06:46 2014 +0200

    - stop kindly

 ejabberd.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/ejabberd.init b/ejabberd.init
index bffcda6..8783545 100644
--- a/ejabberd.init
+++ b/ejabberd.init
@@ -39,7 +39,7 @@ stop() {
 	# Stop daemons.
 	if [ -f /var/lock/subsys/ejabberd ]; then
 		msg_stopping ejabberd ; busy
-		out=$(/bin/su - jabber -s /bin/sh -c "/usr/sbin/ejabberdctl stop" 2>&1)
+		out=$(/bin/su - jabber -s /bin/sh -c "/usr/sbin/ejabberdctl stop_kindly 5 \\\"Server will be stopped now.\\\"" 2>&1)
 		RETVAL=$?
 		if [ $RETVAL -eq 0 ]; then
 			out2=$(/bin/su - jabber -s /bin/sh -c "/usr/sbin/ejabberdctl stopped" 2>&1)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ejabberd.git/commitdiff/26c7f267de901f0a35c1c02e04e98d54c54ba8c6



More information about the pld-cvs-commit mailing list