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
This commit is contained in:
David Shrewsbury 2018-01-16 09:44:58 -05:00
parent b74b0ace12
commit 2b3a4842ea
1 changed files with 2 additions and 12 deletions

View File

@ -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
}
#