Bug#920847: init-d-script: add do_restart_prepare and do_reload_prepare handlers
Dmitry Bogatov
KAction at debian.org
Wed Jan 30 20:48:59 GMT 2019
control: tags -1 +confirmed
[2019-01-29 20:44] Mathieu Mirmont <mat at parad0x.org>
> Package: sysvinit
> Version: 2.93-3
> Severity: normal
> Tags: patch
>
> Dear Maintainer,
>
> My package uses init-d-script and relies on defining a custom
> "do_start_prepare" function to prevent starting the daemon if a
> specific file exists.
>
> While this works fine, it fails when the init.d script is invoked with
> "restart" or "reload". In this case the "do_start_prepare" function is
> not called. There doesn't seem to be a similar mechanism for "restart"
> and "reload". This makes my init.d script significantly more
> complicated to implement (cleanly).
>
> Please consider the attached patch.
Thank you for your contribution. Your patch looks good, but given
upcoming freeze, to avoid surprises, I intend to upload your patch into
unstable after release. Upload to experimental is due in several weeks.
Will it do for you?
--
Note, that I send and fetch email in batch, once every 24 hours.
If matter is urgent, try https://t.me/kaction
--
More information about the Debian-init-diversity
mailing list