Package: kexec-tools Version: 1:2.0.24-1+b1 Followup-For: Bug #1010406 Control: tags -1 patch
Dear Maintainer, here on my system I replaced the content of the "restart" branch with a simple stop/start sequence: restart|reload|force-reload) "$0" stop "$0" start ;; This works fine here (the "start" operation is a no-op, anyway). Attached you find a patch with the above change applied to both init scripts. Thanks for providing an init script for this package! Cheers, Lars
--- /etc/init.d/kexec.orig 2022-11-06 21:26:18.670086639 +0100 +++ /etc/init.d/kexec 2022-11-06 21:27:52.981249908 +0100 @@ -37,8 +37,8 @@ # No-op ;; restart|reload|force-reload) - echo "Error: argument '$1' not supported" >&2 - exit 3 + "$0" stop + "$0" start ;; stop) # Systemd has its own kexec service (which will call the kexec --- /etc/init.d/kexec-load.orig 2022-11-06 21:26:10.545814141 +0100 +++ /etc/init.d/kexec-load 2022-11-06 21:27:58.109421912 +0100 @@ -102,8 +102,8 @@ # No-op ;; restart|reload|force-reload) - echo "Error: argument '$1' not supported" >&2 - exit 3 + "$0" stop + "$0" start ;; stop) # If running systemd, we want kexec reboot only if current