2007-10-03 07:46:16 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
|
|
|
|
|
|
|
SSD=start-stop-daemon
|
|
|
|
PIDF=/var/run/dbus.pid
|
|
|
|
PROG=/usr/sbin/dbus-daemon
|
2008-03-16 18:32:52 +00:00
|
|
|
ARGS=--system
|
2007-10-03 07:46:16 +00:00
|
|
|
|
|
|
|
START=60
|
|
|
|
start() {
|
|
|
|
mkdir -p /var/run/dbus
|
|
|
|
$SSD -S -p $PIDF -q -x $PROG -- $ARGS
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
$SSD -K -p $PIDF -q
|
|
|
|
}
|
|
|
|
|
|
|
|
status() {
|
|
|
|
ps | grep -q "^ *$(cat $PIDF 2>/dev/null) *.*$PROG"
|
|
|
|
}
|
|
|
|
|