#!/bin/sh exec 2>&1 install -d -m 0755 -o messagebus -g messagebus /run/dbus rm -f /run/dbus/pid # BRINTOS-WORKAROUND: brintos/linux#19 remove -- setgid/setgroups return ENOSYS, so the bus cannot drop to messagebus; run it as root without , and without , whose launch helper refuses every caller but messagebus, so the root bus starts an activated service itself sed -e "//d" -e "//d" -e "s|system.d<|/usr/share/dbus-1/system.d<|" /usr/share/dbus-1/system.conf > /run/dbus/system-nouser.conf # An activated service's first start fetches and compiles its files, which outlasts the bus's 25 s default sed -i "s||300000|" /run/dbus/system-nouser.conf exec /usr/bin/dbus-daemon --nofork --nopidfile --config-file=/run/dbus/system-nouser.conf