From 796c154ac3fe7fcfe4c385afca1421c7eb680077 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Fri, 14 Jul 2017 15:41:46 -0400 Subject: [PATCH] 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 --- files/zuul-scheduler.init | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/files/zuul-scheduler.init b/files/zuul-scheduler.init index 388bbe6..d3f54e7 100644 --- a/files/zuul-scheduler.init +++ b/files/zuul-scheduler.init @@ -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 }