#!/usr/bin/execlineb -P

envfile /etc/s6-rc/config/dbus.conf
importas -sCuD "--system --nofork --nopidfile --print-pid=3" Args Args
importas -sCuD "/run/dbus/system_bus_socket" Socket Socket

fdmove -c 2 1
foreground { install -d -m755 -o messagebus -g messagebus /run/dbus }
foreground { dbus-uuidgen --ensure }
exec -c dbus-daemon ${Args} --address=unix:path=${Socket}
