[Main]
Type = classic
Version = 0.1.4
Description = "dbus daemon (after mount-rw; Notify before elogind)"
User = ( root )
Depends = ( devmanager mount-rw )
Options = ( log )

[Start]
Notify = 3
Execute = (
	importas -sCuD "/run/dbus/system_bus_socket" Socket Socket

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

[Environment]
Args = !--system --nofork --nopidfile --print-pid=3
Socket = !/run/dbus/system_bus_socket
