s6-service-definitions/sv/dbus-srv/run

12 lines
403 B
Plaintext
Raw Permalink Normal View History

2022-10-04 10:17:35 -04:00
#!/bin/execlineb -P
foreground { /usr/pkg/bin/dbus-uuidgen --ensure=/etc/machine-id }
foreground { install -m755 -g 81 -o 81 -d /run/dbus }
foreground {
envfile /etc/s6/config/dbus.conf
importas -uD "no" DBUS_UUIDGEN DBUS_UUIDGEN
if { test ${DBUS_UUIDGEN} = "yes" }
redirfd -w 1 /etc/machine-id dbus-uuidgen
}
fdmove -c 2 1
exec /usr/pkg/bin/dbus-daemon --system --nofork --nopidfile --print-pid=3