#565 expose graceful reload in kojid service config and init script
Merged 4 years ago by mikem. Opened 4 years ago by mikem.
mikem/koji systemd-reload  into  master

file modified
+3 -3
@@ -82,15 +82,15 @@ 

    status)

          status $prog

          ;;

+   reload|graceful)

+         graceful

+         ;;

    restart|reload|force-reload)

          restart

          ;;

    condrestart|try-restart)

          [ -f /var/lock/subsys/kojid ] && restart || :

          ;;

-   graceful)

-         graceful

-         ;;

    *)

          echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|graceful}"

          exit 1

file modified
+1
@@ -9,6 +9,7 @@ 

         --fg \

         --force-lock \

         --verbose

+ ExecReload=/bin/kill -USR1 $MAINPID

  

  [Install]

  WantedBy=multi-user.target

kojid has for a long time handled the USR1 signal by initiating a graceful restart. This change exposes that in the systemd service config (and the init script on older platforms).

So service kojid reload will trigger the same sort of restart that the restart-hosts command does, but only for the build host you run it on.

Pull-Request has been merged by mikem

4 years ago

I did not mean to merge this. I do not even think I clicked the merge button. I was adding a comment. Either this was an freak accidental click or pagure has a strange bug