description "System message bus"
author "Michael Biebl"
start on started network
start on starting multiuser
stop on starting shutdown
stop on stopping multiuser
console output
pre-start script
# This has to be here
if [ ! -d /var/run/dbus ]; then
mkdir /var/run/dbus
fi
# Correct the permissions
chown messagebus:messagebus /var/run/dbus
# This needs to be run to generate the UUID for the machine
/usr/bin/dbus-uuidgen --ensure
end script
exec /usr/bin/dbus-daemon --system --nofork
respawn
~