Bug#851688: systemd: Redirect try-restart in SysV init scripts
Michael Biebl
biebl at debian.org
Tue Jan 17 18:58:30 GMT 2017
Am 17.01.2017 um 19:46 schrieb Ondrej Novy:
> Hi,
>
> 2017-01-17 19:26 GMT+01:00 Michael Biebl <biebl at debian.org
> <mailto:biebl at debian.org>>:
>
> I think this would be useful but this would need changes in invoke-rc.d,
>
>
> no, invoke-rc.d supports this.
Well, not quite. Under systemd the try-restart call is not redirected to
systemctl:
> *)
> # We try to run non-standard actions by running
> # the init script directly.
> "${INITDPREFIX}${INITSCRIPTID}" "${saction}" "$@" && exit 0
With the LSB hook, we'd sort-of catch this later, for those sysv init
scripts using /lib/lsb/init-functions. But not all of them do
> service
>
>
> service = sysv init script? That's optional and anyone can do it. We are
I meant /usr/sbin/service
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20170117/1a57e7b6/attachment-0002.sig>
More information about the Pkg-systemd-maintainers
mailing list