Your message dated Tue, 14 Jul 2015 15:50:24 +0000 with message-id <[email protected]> and subject line Bug#789809: fixed in sec 2.7.7-2 has caused the Debian Bug report #789809, regarding sec: etc/default/sec not respected 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 [email protected] immediately.) -- 789809: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789809 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: sec Version: 2.7.7-1 Severity: important When sec is started (with systemctl or /etc/init.d/sec), the option $DAEMON_ARGS from /etc/default/sec is not respected. sec starts up, but just runs without options and does nothing. This seems to be connected to systemd. The script /etc/init.d/sec seems like it would do everything as expected, but systemd intercepts the startup when /lib/lsb/init-functions is loaded, which in turn loads /lib/lsb/init-functions.d/40-systemd. I've read through 40-systemd, and it seems to be doing a bunch of stuff, but I can't point to a definite point where sec is loaded and $DAEMON_ARGS is (or isn't) used. I took a look at sec.service as well, and it doesn't mention anything about command line options. MM -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, 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 sec depends on: ii init-system-helpers 1.23 ii perl 5.20.2-6 sec recommends no packages. sec suggests no packages. -- Configuration Files: /etc/default/sec changed: RUN_DAEMON="yes" DAEMON_ARGS="--conf=/etc/sec.conf --input=/var/log/syslog --pid=/var/run/sec.pid --detach --log=/var/log/sec.log" /etc/init.d/sec changed: PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Simple Event Correlator" NAME=sec PERL=/usr/bin/perl DAEMON=/usr/bin/$NAME PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME [ -x "$DAEMON" ] || exit 0 [ -r /etc/default/$NAME ] && . /etc/default/$NAME if [ "$RUN_DAEMON" != "yes" ] ; then echo "SEC disabled in /etc/default/sec" exit 0 fi . /lib/init/vars.sh . /lib/lsb/init-functions do_start() { # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $PERL --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $PERL --startas $DAEMON -- \ $DAEMON_ARGS \ || return 2 # Add code here, if necessary, that waits for the process to be ready # to handle requests from services started subsequently which depend # on this one. As a last resort, sleep for some time. } do_stop() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Wait for children to finish too if this is a daemon that forks # and if the daemon is only ever run from this initscript. # If the above conditions are not satisfied then add some other code # that waits for the process to drop all resources that could be # needed by services started subsequently. A last resort is to # sleep for some time. #start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON #[ "$?" = 2 ] && return 2 # Many daemons don't delete their pidfiles when they exit. rm -f $PIDFILE return "$RETVAL" } do_reload() { # # If the daemon can reload its configuration without # restarting (for example, when it is sent a SIGHUP), # then implement that here. # start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME return 0 } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" echo ${RUN_DAEMON} echo ${DAEMON_ARGS} exit do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; #reload|force-reload) # # If do_reload() is not implemented then leave this commented out # and leave 'force-reload' as an alias for 'restart'. # #log_daemon_msg "Reloading $DESC" "$NAME" #do_reload #log_end_msg $? #;; restart|force-reload) # # If the "reload" option is implemented then remove the # 'force-reload' alias # log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 exit 3 ;; esac : -- no debconf information
--- End Message ---
--- Begin Message ---Source: sec Source-Version: 2.7.7-2 We believe that the bug you reported is fixed in the latest version of sec, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Jaakko Niemi <[email protected]> (supplier of updated sec package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Tue, 14 Jul 2015 18:07:53 +0300 Source: sec Binary: sec Architecture: source all Version: 2.7.7-2 Distribution: unstable Urgency: medium Maintainer: Jaakko Niemi <[email protected]> Changed-By: Jaakko Niemi <[email protected]> Description: sec - Simple Event Correlator Closes: 789809 791581 Changes: sec (2.7.7-2) unstable; urgency=medium . * Fix typoes in unit file (Closes: #791581) * Ship new unit file which changes type to forking, defines pidfile and reads options from /etc/default/sec (Closes: #789809) * Change options in /etc/default/sec to use two dashes instead one, to follow upstream convention Checksums-Sha1: 489686743e5bde9563f32ca2ee0c156fe41b7b02 1595 sec_2.7.7-2.dsc 8048b5d38cde4ebc38dcdd073439e326d1fb3f65 3758 sec_2.7.7-2.diff.gz e15cb1d4e3f784a854d97c32aba47a0de0b5cbd5 113854 sec_2.7.7-2_all.deb Checksums-Sha256: dedbc7d245e43bdb31c3f4bc5f40c0dacbfc388d404ed7828c65b8f6297a5262 1595 sec_2.7.7-2.dsc a8bf3ddfc46322dcf674d0e21d5d1b3fefb989941f9c6ecd120b12498adfb8b6 3758 sec_2.7.7-2.diff.gz cd3d404de79ad99ad4211275c8548607f1aa67f69eb4d44e2d0172d21572474f 113854 sec_2.7.7-2_all.deb Files: 8fe1dd4eed65dfc7af19eec7bf621f84 1595 utils optional sec_2.7.7-2.dsc 85bd8d3910759fad257491beab7b14a1 3758 utils optional sec_2.7.7-2.diff.gz 54752be7d183cd508dabbbf40b5a7084 113854 utils optional sec_2.7.7-2_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVpSe0AAoJEEXba1bsLVI962IQAKvwqAeEmnluGS8JU/l6qS/k GwwBlBRpytoZyFA3r/7XhIHARn9KwjxcZiwiJ/CtNuucwa6QiQENC1yZi5X49a7/ ql9X7gkWuHxThxwL7vVdyBp8RoFz96xp+5I5FUgB2p0y/6S+Qhcovy+jzZSiJs3A dOYAF0cRjKg2od/nxyftYlJAcsT3DZ0ac/v5IJh3SeSMxJInyo6f3VR+Eda+Skrf d5dyqNeEjfs1GobelODHxnx/jfBYI6RXxxoLpQaBXHev0HVScuJ2hFi5LfvuAVcW sN0g5A1HnN2gsCqIGEu8xONTelza/Ql2JGBJUNBOREAv45XsJzrg1oRD+0RvLtpd RT6t1uaDFg+MsDZJGwVdvuIIpgYZ6w+SGau0JOdn7j84dM/QPVjwQTukQPItjEeI /eifxKTxuKtN1DBnn0VtWDkTqR0Np7tE844/Z47YAnWhprpnUuRDv+YGo3ZYkE9o w2D5tOta8LS6xn1FvFej4tk2QGXZo07N3U+Zq9f4/L+jj8lElAYobsIGBeSaWs+Z Py/DCD9rR9ocrhWQ8HVPEVsW0s0ctY10Vd33KTt8TYd75E6NLVZ8bHSqQOVaD673 nA9XogUqROVk2PmbiF3uWYpWdq/vSOHAsiqco5raFsXlO5z0oI0SkNIn3wFsIp2t QlIabZCjHeJt9LXNGbls =A6ZB -----END PGP SIGNATURE-----
--- End Message ---

