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