vp-build/templates/dbus/files/dbus.rc
Juan RP 940404d5eb dbus: switch to OpenRC, bump revision.
--HG--
extra : convert_revision : d2099026e9bdd524aa7ae31062e7079bf937a3f2
2009-05-04 23:51:22 +02:00

24 lines
334 B
Plaintext

#!/sbin/runscript
command=/usr/bin/dbus-daemon
pidfile=/var/run/dbus/pid
: ${command_args:=--system}
name="D-Bus (System Message Bus)"
depend()
{
need localmount net
after bootmisc
}
start_pre()
{
dir=$(dirname $pidfile)
if [ ! -d $dir ]; then
mkdir $dir
chmod 0755 $dir
chown dbus:dbus $dir
fi
dbus-uuidgen --ensure
}