From 9619b8d084f1d8f4face739e3b899853ca2af15d Mon Sep 17 00:00:00 2001 From: "tgoff0@gmail.com" Date: Wed, 28 Jan 2015 02:15:58 +0000 Subject: [PATCH] scripts: Wait up to 10 seconds when shutting down the CORE daemon. --- trunk/scripts/core-daemon-init.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk/scripts/core-daemon-init.d b/trunk/scripts/core-daemon-init.d index a7b59a2e..9d8f417b 100755 --- a/trunk/scripts/core-daemon-init.d +++ b/trunk/scripts/core-daemon-init.d @@ -70,6 +70,7 @@ PIDFILE=/var/run/core-daemon.pid if [ $DEB = yes ]; then daemon="start-stop-daemon --start -p ${PIDFILE} --exec /usr/bin/python --" #daemon=start_daemon + killproc="start-stop-daemon --stop --quiet --oknodo --retry 10" status=status_of_proc msg () { log_daemon_msg "$@" @@ -79,6 +80,7 @@ if [ $DEB = yes ]; then } else daemon="daemon /usr/bin/python" + killproc="killproc -d 10" status=status msg () { echo -n $"$@" @@ -99,7 +101,7 @@ start() { stop() { msg "Shutting down core-daemon" - killproc -p ${PIDFILE} $cored + $killproc -p ${PIDFILE} $cored RETVAL=$? rm -f ${PIDFILE} endmsg