07987391dd
While here make sure the pid file is not around anymore on startup (which can happen after a crash and prevent DBus from starting again).
15 lines
246 B
Bash
Executable File
15 lines
246 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $OpenBSD: dbus_daemon.rc,v 1.10 2011/12/20 14:27:46 ajacoutot Exp $
|
|
|
|
daemon="${TRUEPREFIX}/bin/dbus-daemon --system"
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
rc_pre() {
|
|
rm -f /var/run/dbus/pid
|
|
install -d -o _dbus -g _dbus /var/run/dbus
|
|
}
|
|
|
|
rc_cmd $1
|