Bug#850703: systemd: incorrect LSB support with monit's init script

Michael Biebl biebl at debian.org
Wed Jan 11 17:20:14 GMT 2017


Am 09.01.2017 um 16:41 schrieb Martin Pitt:
> Hello Vincent,
> 
> Vincent Lefevre [2017-01-09 15:15 +0100]:
>> The monit service (from the monit package) should be started last and
>> stopped first. This is not the case with systemd.
>>
>> # Should-Start:      $all
>> # Should-Stop:       $all
> 
> Please note that the SysV concept of "$all" is notoriously broken (what if
> another package uses $all too?), and cannot be represented sensibly in any
> non-serial init system (systemd, upstart, and even sysv with startpar). If
> monit needs to start/stop after/before other services, these should be
> enumerated explicitly.
> 
> That said, the SysV generator could approximate this a bit better by running
> "After=multi-user.target" instead of "Before=multi-user.target", i. e. similar
> to Type=idle.

So, we discussed this on IRC.
To add support for $all in the sysv-generator, we'd have to special case
it at various places as we already have an After=multi-user.target
ordering. This is quite ugly. And it wouldn't be a real fix anyway.

Given that we only have a handful of packages left which use $all, our
time is better spent if those few packages add native service files.

Please consider filing a bug report against monit for that.

I'll keep this bug report open for a while. Maybe someone has an idea
how to implement this cleanly. In which case we'd be fine with applying it.


-- 
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/20170111/606dea3f/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list