blob: 928841a56df7197dadf432419329245a0336fee5 (
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
|
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: dbus.sh,v 1.8 2008/09/24 11:37:31 taca Exp $
#
# PROVIDE: dbus
# REQUIRE: DAEMON
# KEYWORD: shutdown
. /etc/rc.subr
name="dbus"
rcvar=$name
command="@PREFIX@/bin/dbus-daemon"
command_args="--system"
pidfile="@VARBASE@/run/dbus/pid"
start_precmd=dbus_prestart
dbus_prestart() {
dir="@VARBASE@/run/dbus"
if @TEST@ ! -d $dir; then
@MKDIR@ $dir
@CHMOD@ 0755 $dir
@CHOWN@ @DBUS_USER@:@DBUS_GROUP@ $dir
fi
done
@PREFIX@/bin/dbus-uuidgen --ensure
}
load_rc_config $name
run_rc_command "$1"
|