summaryrefslogtreecommitdiff
path: root/packages/dbus/dbus-1.2.1/dbus-1.init
diff options
context:
space:
mode:
authorOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2008-05-05 21:52:39 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2008-05-05 21:52:39 +0000
commit0fb268a8c03bbea4fc1f34a3b7a9ebe7a02c471d (patch)
treeccf99743568c299437bb03381b1625b8c0a838ee /packages/dbus/dbus-1.2.1/dbus-1.init
parent6165473d292012b6c60308c8eb0f3604a020b046 (diff)
parent66af3461a3fdf3eb7ceb76bb2a04e66be8283b8c (diff)
merge of '86dacb8c8e579fd5d42ab61a0c0f344bcf74146d'
and 'd4a97f257158aba4fde91347580030110ef215bf'
Diffstat (limited to 'packages/dbus/dbus-1.2.1/dbus-1.init')
-rw-r--r--packages/dbus/dbus-1.2.1/dbus-1.init17
1 files changed, 9 insertions, 8 deletions
diff --git a/packages/dbus/dbus-1.2.1/dbus-1.init b/packages/dbus/dbus-1.2.1/dbus-1.init
index 0725083c69..bf002748a1 100644
--- a/packages/dbus/dbus-1.2.1/dbus-1.init
+++ b/packages/dbus/dbus-1.2.1/dbus-1.init
@@ -2,14 +2,15 @@
# -*- coding: utf-8 -*-
# Debian init.d script for D-BUS
# Copyright © 2003 Colin Walters <walters@debian.org>
+# Copyright 2008 OE Team
set -e
DAEMON=/usr/bin/dbus-daemon
NAME=dbus
DAEMONUSER=messagebus
-PIDDIR=/var/run/dbus
-PIDFILE=$PIDDIR/pid
+RUNDIR=/var/run/dbus
+PIDFILE=/var/run/messagebus.pid
UUIDDIR=/var/lib/dbus
DESC="system message bus"
EVENTDIR=/etc/dbus-1/event.d
@@ -27,10 +28,10 @@ test "$ENABLED" != "0" || exit 0
start_it_up()
{
- if [ ! -d $PIDDIR ]; then
- mkdir -p $PIDDIR
- chown $DAEMONUSER $PIDDIR
- chgrp $DAEMONUSER $PIDDIR
+ if [ ! -d $RUNDIR ]; then
+ mkdir -p $RUNDIR
+ chown $DAEMONUSER $RUNDIR
+ chgrp $DAEMONUSER $RUNDIR
fi
if [ -e $PIDFILE ]; then
PIDDIR=/proc/$(cat $PIDFILE)
@@ -51,7 +52,7 @@ start_it_up()
dbus-uuidgen --ensure
echo -n "Starting $DESC: "
- start-stop-daemon --start --quiet --pidfile $PIDFILE \
+ start-stop-daemon --start --pidfile $PIDFILE \
--user $DAEMONUSER --exec $DAEMON -- --system $PARAMS
echo "$NAME."
if [ -d $EVENTDIR ]; then
@@ -66,7 +67,7 @@ shut_it_down()
run-parts --arg=stop $EVENTDIR
fi
echo -n "Stopping $DESC: "
- start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+ start-stop-daemon --stop --oknodo --pidfile $PIDFILE \
--user $DAEMONUSER
# We no longer include these arguments so that start-stop-daemon
# can do its job even given that we may have been upgraded.