Your message dated Fri, 28 Apr 2017 22:05:47 +0200
with message-id <d7092bfd-c87d-79c6-8d4b-0720d0ba8...@debian.org>
and subject line Re: Bug#850703: systemd: incorrect LSB support with monit's
init script
has caused the Debian Bug report #850703,
regarding systemd: sysv generator does not support $all LSB facility
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
850703: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850703
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: systemd
Version: 232-8
Severity: normal
The monit service (from the monit package) should be started last and
stopped first. This is not the case with systemd.
I've attached monit's init script.
-- Package-specific info:
-- System Information:
Debian Release: stretch/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500,
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.8.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages systemd depends on:
ii adduser 3.115
ii libacl1 2.2.52-3
ii libapparmor1 2.10.95-8
ii libaudit1 1:2.6.7-1
ii libblkid1 2.29-1
ii libc6 2.24-8
ii libcap2 1:2.25-1
ii libcryptsetup4 2:1.7.3-3
ii libgcrypt20 1.7.5-2
ii libgpg-error0 1.26-1
ii libidn11 1.33-1
ii libip4tc0 1.6.0+snapshot20161117-4
ii libkmod2 23-2
ii liblz4-1 0.0~r131-2
ii liblzma5 5.2.2-1.2
ii libmount1 2.29-1
ii libpam0g 1.1.8-3.5
ii libseccomp2 2.3.1-2.1
ii libselinux1 2.6-3
ii libsystemd0 232-8
ii mount 2.29-1
ii util-linux 2.29-1
Versions of packages systemd recommends:
ii dbus 1.10.14-1
ii libpam-systemd 232-8
Versions of packages systemd suggests:
ii policykit-1 0.105-17
pn systemd-container <none>
pn systemd-ui <none>
Versions of packages systemd is related to:
pn dracut <none>
ii initramfs-tools 0.126
ii udev 232-8
-- Configuration Files:
/etc/systemd/journald.conf changed:
[Journal]
Storage=persistent
/etc/systemd/system.conf changed:
[Manager]
DefaultTimeoutStopSec=20s
-- no debconf information
#!/bin/sh
### BEGIN INIT INFO
# Provides: monit
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Should-Start: $all
# Should-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: service and resource monitoring daemon
# Description: monit is a utility for managing and monitoring
# processes, programs, files, directories and filesystems
# on a Unix system. Monit conducts automatic maintenance
# and repair and can execute meaningful causal actions
# in error situations.
### END INIT INFO
set -e
. /lib/lsb/init-functions
DAEMON=/usr/bin/monit
CONFIG=/etc/monit/monitrc
NAME=monit
DESC="daemon monitor"
MONIT_OPTS=
PID="/run/$NAME.pid"
# Check if DAEMON binary exist
[ -f $DAEMON ] || exit 0
[ -f "/etc/default/$NAME" ] && . /etc/default/$NAME
MONIT_OPTS="-c $CONFIG $MONIT_OPTS"
monit_not_configured () {
if [ "$1" != "stop" ]
then
printf "\tplease configure $NAME and then edit /etc/default/$NAME\n"
printf "\tand set the \"START\" variable to \"yes\" in order to allow\n"
printf "\t$NAME to start\n"
fi
exit 0
}
monit_checks () {
# Check if START variable is set to "yes", if not we exit.
if [ "$START" != "yes" ]
then
monit_not_configured $1
fi
}
case "$1" in
start)
log_daemon_msg "Starting $DESC" "$NAME"
monit_checks $1
if start-stop-daemon --start --quiet --oknodo --pidfile $PID --exec $DAEMON
-- $MONIT_OPTS 1>/dev/null
then
log_end_msg 0
else
log_end_msg 1
fi
;;
stop)
log_daemon_msg "Stopping $DESC" "$NAME"
if start-stop-daemon --retry TERM/5/KILL/5 --oknodo --stop --quiet
--pidfile $PID 1>/dev/null
then
log_end_msg 0
else
log_end_msg 1
fi
;;
reload)
log_daemon_msg "Reloading $DESC configuration" "$NAME"
if start-stop-daemon --stop --signal HUP --quiet --oknodo --pidfile $PID
--exec $DAEMON -- $MONIT_OPTS 1>/dev/null
then
log_end_msg 0
else
log_end_msg 1
fi
;;
restart|force-reload)
log_daemon_msg "Restarting $DESC" "$NAME"
start-stop-daemon --retry TERM/5/KILL/5 --oknodo --stop --quiet --pidfile
$PID 1>/dev/null
if start-stop-daemon --start --quiet --oknodo --pidfile $PID --exec $DAEMON
-- $MONIT_OPTS 1>/dev/null
then
log_end_msg 0
else
log_end_msg 1
fi
;;
syntax)
$DAEMON $MONIT_OPTS -t
;;
status)
status_of_proc -p $PID $DAEMON $NAME
;;
*)
log_action_msg "Usage: /etc/init.d/$NAME
{start|stop|reload|restart|force-reload|syntax|status}"
;;
esac
exit 0
--- End Message ---
--- Begin Message ---
On Wed, 11 Jan 2017 18:20:14 +0100 Michael Biebl <bi...@debian.org> wrote:
> 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.
No such idea materialized, so I'm going to close this bug report.
Regards,
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature
--- End Message ---
_______________________________________________
Pkg-systemd-maintainers mailing list
Pkg-systemd-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers