openbsd-ports/x11/dbus/pkg/dbus_daemon.rc
ajacoutot 07987391dd Add --system to daemon instead of daemon_flags to make it mandatory.
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).
2011-12-20 14:27:46 +00:00

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