From 2b3a4842eade2d7bc0e7b401ee63799c8e7178c4 Mon Sep 17 00:00:00 2001 From: David Shrewsbury Date: Tue, 16 Jan 2018 09:44:58 -0500 Subject: [PATCH] Update fingergw init script for command socket The zuul-fingergw in zuulv3 accepts the 'stop' command to stop the daemon. This is the only valid way to stop it. Change-Id: I86ac10c3a4d3af594fd32a5c0e316d626abf5a5e --- files/zuul-fingergw.init | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/files/zuul-fingergw.init b/files/zuul-fingergw.init index c5019ff..380d512 100644 --- a/files/zuul-fingergw.init +++ b/files/zuul-fingergw.init @@ -70,18 +70,8 @@ do_start() # do_stop() { - # Return - # 0 if daemon has been stopped - # 1 if daemon was already stopped - # 2 if daemon could not be stopped - # other if a failure occurred - start-stop-daemon --stop --signal 9 --pidfile $PIDFILE - RETVAL="$?" - [ "$RETVAL" = 2 ] && return 2 - if [ -f "$PIDFILE" ] ; then - rm -f $PIDFILE - fi - return "$RETVAL" + $DAEMON stop + return 0 } #