diff options
author | Sjoerd Simons <sjoerd@debian.org> | 2007-11-17 12:47:15 +0000 |
---|---|---|
committer | Sjoerd Simons <sjoerd@debian.org> | 2007-11-17 12:47:15 +0000 |
commit | 69f3b806574266f2251567ee4070167fb6572e23 (patch) | |
tree | 64fc47256f3fc6cbc3a89bb54ebf78d038c7c7da /debian/dbus.init | |
parent | 4538c27facda4ed8d2f017b9f474410afdd5b4c4 (diff) | |
download | dbus-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.init | 6 |
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 |