recipes: modules/perl/xml-sax: added version 1.02
[dragora.git] / archive / dbus / rc.main
blobd54c43f13f4bcb85746bc014540bf8b31242a5c6
1 #! /bin/sh -
3 # dbus/rc.main
5 # D-Bus daemon.
8 # Redirects the standard error to the standard output
9 exec 2>&1
11 TARGET="$1"
12 SVNAME="${2:-dbus}"
14 start()
16 echo "*** ${SVNAME}: Starting dbus ..."
18 # Validate or generate unique ID file (/var/lib/dbus/machine-id)
19 /usr/bin/dbus-uuidgen --ensure
21 mkdir -p /var/run/dbus
22 exec /usr/bin/dbus-daemon --nofork --system --nopidfile
25 reset()
27 case $3 in
28 exit)
29 echo "*** ${SVNAME}: Exited status $4"
31 signal)
32 echo "*** ${SVNAME}: Killed on signal $5"
35 echo "*** ${SVNAME}: Stopped (${3})"
37 esac
40 # Branch to target
41 eval ${TARGET} "$@"