Bug#850703: systemd: incorrect LSB support with monit's init script
Martin Pitt
mpitt at debian.org
Mon Jan 9 15:41:20 GMT 2017
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.
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
More information about the Pkg-systemd-maintainers
mailing list