summaryrefslogtreecommitdiff
path: root/packages/dbus/dbus-1.0.1
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2006-11-19 11:42:50 +0000
committerKoen Kooi <koen@openembedded.org>2006-11-19 11:42:50 +0000
commiteedf08450c9b9e119a5cc09fa2e726dfed48ebd7 (patch)
treecc560bb5660b038474e965eac8a111e1450c9383 /packages/dbus/dbus-1.0.1
parent57df8330d593b3a609364f07a5e51c7868c88717 (diff)
dbuys 1.0.1: ensure /var/lib/dbus exists before writing to it
Diffstat (limited to 'packages/dbus/dbus-1.0.1')
-rw-r--r--packages/dbus/dbus-1.0.1/dbus-1.init8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/dbus/dbus-1.0.1/dbus-1.init b/packages/dbus/dbus-1.0.1/dbus-1.init
index 4829c0d4a8..38e7574ad5 100644
--- a/packages/dbus/dbus-1.0.1/dbus-1.init
+++ b/packages/dbus/dbus-1.0.1/dbus-1.init
@@ -10,6 +10,7 @@ NAME=dbus
DAEMONUSER=messagebus
PIDDIR=/var/run/dbus
PIDFILE=$PIDDIR/pid
+UUIDDIR=/var/lib/dbus
DESC="system message bus"
EVENTDIR=/etc/dbus-1/event.d
@@ -40,8 +41,15 @@ start_it_up()
rm -f $PIDFILE
fi
fi
+
+ if [ ! -d $UUIDDIR ]; then
+ mkdir -p $UUIDDIR
+ chown $DAEMONUSER $UUIDDIR
+ chgrp $DAEMONUSER $UUIDDIR
+ fi
dbus-uuidgen --ensure
+
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--user $DAEMONUSER --exec $DAEMON -- --system $PARAMS