packages/utils/dbus/files/dbus.init
nico 18ddb1e5b7 [packages] add dbus
git-svn-id: svn://svn.openwrt.org/openwrt/packages@9107 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-03 07:46:16 +00:00

23 lines
331 B
Bash
Executable File

#!/bin/sh /etc/rc.common
# Copyright (C) 2007 OpenWrt.org
SSD=start-stop-daemon
PIDF=/var/run/dbus.pid
PROG=/usr/sbin/dbus-daemon
ARGS=
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"
}