[Main]
Type = classic
Description = "dbus system daemon"
User = ( root )
Conflicts = ( 66-dbus-launch dbus-launch )
@VERSION@

[Start]
MaxDeath = 3
Notify = 4
Timeout = 3000
Execute = (
    foreground { install -m755 -g 81 -o 81 -d /run/dbus }
    foreground { mkdir -p /var/lib/dbus }
    foreground { dbus-uuidgen --ensure }
    dbus-daemon ${Args}
)

[Stop]
Execute = ( rm -rf ${Socket} )

[Environment]
Args=!--system --print-pid=4 --nofork --nopidfile --address=unix:path=${Socket}
Socket=!/run/dbus/system_bus_socket
