blob: 9d8c272bcec2c325a404a425e7cde75e46cbfa77 (
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
|
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: dbus.sh,v 1.3 2006/03/30 20:57:08 jmmv 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_user=messagebus
dbus_group=messagebus
dbus_prestart() {
if @TEST@ ! -d "@VARBASE@/run/dbus"; then
@MKDIR@ "@VARBASE@/run/dbus"
@CHMOD@ 0755 "@VARBASE@/run/dbus"
@CHOWN@ ${dbus_user}:${dbus_group} "@VARBASE@/run/dbus"
fi
}
load_rc_config $name
run_rc_command "$1"
|