Package: rwhod
Version: 0.17-12
Severity: important
When you restart or stop the rwhod service via init.d on a LXC hostnode, the
rwhod processes on all underlying LXC containers is killed. This is caused by
the way start-stop-daemon works (`killall rwhod`) and all processes on the LXC
containers are visible on the hostnode.
A fix would be that rwhod creates a PID-file which is used within the
init-script. Due to the forking-behaviour of rwhod, is it not possible to use
--make-pidfile as parameter for start-stop-daemon, cause it will store a wrong
PID.
-- System Information:
Debian Release: 6.0.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.4.5 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages rwhod depends on:
ii adduser 3.112+nmu2 add and remove users and groups
ii libc6 2.11.3-3 Embedded GNU C Library: Shared lib
ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii passwd 1:4.1.4.2+svn3283-2+squeeze1 change and administer password and
rwhod recommends no packages.
rwhod suggests no packages.
-- Configuration Files:
/etc/default/rwhod changed:
RWHOD_OPTIONS="-i vzbr1"
/etc/init.d/rwhod changed:
test $DEBIAN_SCRIPT_DEBUG && set -v -x
DESC="System status server"
DAEMON="/usr/sbin/rwhod"
PIDFILE="/var/run/rwhod.pid"
CONF_FILE="/etc/default/rwhod"
RWHOD_OPTIONS="-i vzbr1"
test -x $DAEMON || exit 0
. /lib/lsb/init-functions
if test -e $CONF_FILE ; then
. $CONF_FILE
fi
start_stop() {
case "$1" in
start)
log_daemon_msg "Starting $DESC" "rwhod"
start-stop-daemon --start --oknodo --quiet \
--pidfile $PIDFILE \
--exec $DAEMON -- $RWHOD_OPTIONS
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping $DESC" "rwhod"
#start-stop-daemon --stop --oknodo --quiet \
# --exec $DAEMON
pkill -fx "/usr/sbin/rwhod -i vzbr1"
log_end_msg $?
;;
restart | force-reload)
start_stop stop
sleep 1
start_stop start
;;
status)
status_of_proc $DAEMON "rwhod"
;;
*)
log_success_msg "Usage: $0
{start|stop|restart|force-reload|status}\n" >&2
exit 1
;;
esac
}
start_stop "$@"
exit 0
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]