You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
681 B

  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2007-2011 OpenWrt.org
  3. START=60
  4. USE_PROCD=1
  5. PROG=/usr/bin/dbus-daemon
  6. # To enable this makes only sense if the dbus has been compiled with
  7. # the option CONFIG_DBUS_VERBOSE=y
  8. #DEBUG=1
  9. start_service() {
  10. mkdir -m 0755 -p /var/lib/dbus
  11. mkdir -m 0755 -p /var/run/dbus
  12. [ -x /usr/bin/dbus-uuidgen ] && /usr/bin/dbus-uuidgen --ensure
  13. procd_open_instance
  14. procd_set_param command "${PROG}"
  15. procd_append_param command --system
  16. procd_append_param command --nofork
  17. [ -n "$DEBUG" ] && procd_set_param env DBUS_VERBOSE=1
  18. procd_set_param stdout 1
  19. procd_set_param stderr 1
  20. procd_close_instance
  21. }
  22. stop_service() {
  23. service_stop "${PROG}"
  24. }