[packages] add dbus
[openwrt/svn-archive/archive.git] / utils / dbus / files / dbus.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2007 OpenWrt.org
3
4 SSD=start-stop-daemon
5 PIDF=/var/run/dbus.pid
6 PROG=/usr/sbin/dbus-daemon
7 ARGS=
8
9 START=60
10 start() {
11 mkdir -p /var/run/dbus
12 $SSD -S -p $PIDF -q -x $PROG -- $ARGS
13 }
14
15 stop() {
16 $SSD -K -p $PIDF -q
17 }
18
19 status() {
20 ps | grep -q "^ *$(cat $PIDF 2>/dev/null) *.*$PROG"
21 }
22