dbus.init 368 B

1234567891011121314151617
  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2007-2011 OpenWrt.org
  3. START=60
  4. SERVICE_PID_FILE=/var/run/dbus.pid
  5. start() {
  6. mkdir -m 0755 -p /var/lib/dbus
  7. mkdir -m 0755 -p /var/run/dbus
  8. [ -x /usr/bin/dbus-uuidgen ] && /usr/bin/dbus-uuidgen --ensure
  9. service_start /usr/sbin/dbus-daemon --system
  10. }
  11. stop() {
  12. service_stop /usr/sbin/dbus-daemon && rm $SERVICE_PID_FILE
  13. }