Send SIGHUP for zuul-scheduler reload

We haven't added socket support yet to zuulv3, revert to the original
way of using SIGHUP for reloading zuul-scheduler.

Change-Id: Id466ccb28ea37a3b7171237e98ea08c8db7199cd
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-07-14 15:41:46 -04:00
parent faa53c009c
commit 796c154ac3
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
1 changed files with 7 additions and 1 deletions

View File

@ -74,7 +74,13 @@ do_stop()
# Function that sends a SIGHUP to the daemon/service
#
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 zuul-scheduler
return 0
}