From 69f3b806574266f2251567ee4070167fb6572e23 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Sat, 17 Nov 2007 12:47:15 +0000 Subject: * debian/dbus.init - Warn if /proc isn't mounted and refuse to start (Closes: #431101, #447363) git-svn-id: svn+ssh://svn.debian.org/svn/pkg-utopia/packages/unstable/dbus@1864 ceb527fc-18e6-0310-9fe2-813c157c29e7 --- debian/dbus.init | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'debian/dbus.init') diff --git a/debian/dbus.init b/debian/dbus.init index 05cc8bc6..590287cb 100644 --- a/debian/dbus.init +++ b/debian/dbus.init @@ -96,6 +96,12 @@ start_it_up() chown $DAEMONUSER $PIDDIR chgrp $DAEMONUSER $PIDDIR fi + + if [ ! -e /proc/filesystems ] ; then + log_failure_msg "Can't start $DESC - /proc is not mounted" + return + fi + if [ -e $PIDFILE ]; then PIDDIR=/proc/$(cat $PIDFILE) if [ -d ${PIDDIR} -a "$(readlink -f ${PIDDIR}/exe)" = "${DAEMON}" ]; then -- cgit v1.2.3