summaryrefslogtreecommitdiff
path: root/debian/dbus.init
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@debian.org>2007-11-17 12:47:15 +0000
committerSjoerd Simons <sjoerd@debian.org>2007-11-17 12:47:15 +0000
commit69f3b806574266f2251567ee4070167fb6572e23 (patch)
tree64fc47256f3fc6cbc3a89bb54ebf78d038c7c7da /debian/dbus.init
parent4538c27facda4ed8d2f017b9f474410afdd5b4c4 (diff)
downloaddbus-69f3b806574266f2251567ee4070167fb6572e23.tar.gz
* 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
Diffstat (limited to 'debian/dbus.init')
-rw-r--r--debian/dbus.init6
1 files changed, 6 insertions, 0 deletions
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