Fix stop / restart for zuul-web init script
We don't yet have socket support for zuul-web, revert to default way of doing this. Change-Id: I2ec2c928c43def839d0ba8a212135d5414da9a52 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
bdaeb08041
commit
04f4d9a55d
@ -66,15 +66,29 @@ do_start()
|
|||||||
#
|
#
|
||||||
do_stop()
|
do_stop()
|
||||||
{
|
{
|
||||||
$DAEMON stop
|
# Return
|
||||||
return 0
|
# 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
|
||||||
|
rm -f /var/run/$NAME/*
|
||||||
|
return "$RETVAL"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Function that sends a SIGHUP to the daemon/service
|
# Function that sends a SIGHUP to the daemon/service
|
||||||
#
|
#
|
||||||
do_reload() {
|
do_reload() {
|
||||||
$DAEMON reconfigure
|
#
|
||||||
|
# If the daemon can reload its configuration without
|
||||||
|
# restarting (for example, when it is sent a SIGHUP),
|
||||||
|
# then implement that here.
|
||||||
|
#
|
||||||
|
start-stop-daemon \
|
||||||
|
--stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user