packages/utils/dbus/files/dbus.init
nico 7801afab1c packages/dbus: use new service functions
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28947 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-11 15:46:30 +00:00

18 lines
368 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2007-2011 OpenWrt.org
START=60
SERVICE_PID_FILE=/var/run/dbus.pid
start() {
mkdir -m 0755 -p /var/lib/dbus
mkdir -m 0755 -p /var/run/dbus
[ -x /usr/bin/dbus-uuidgen ] && /usr/bin/dbus-uuidgen --ensure
service_start /usr/sbin/dbus-daemon --system
}
stop() {
service_stop /usr/sbin/dbus-daemon && rm $SERVICE_PID_FILE
}