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:
parent
b74b0ace12
commit
2b3a4842ea
@ -70,18 +70,8 @@ do_start()
|
|||||||
#
|
#
|
||||||
do_stop()
|
do_stop()
|
||||||
{
|
{
|
||||||
# Return
|
$DAEMON stop
|
||||||
# 0 if daemon has been stopped
|
return 0
|
||||||
# 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"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user