[Main]
Type = classic
Description = "dbus system daemon"

[Start]
MaxDeath = 3
Notify = 4
Timeout = 3000
Execute = (
    execl-toc -S ${Socket} -m 0755
    if {
        execl-toc -d /var/lib/dbus
        dbus-uuidgen --ensure
    }
    dbus-daemon ${Args}
)

[Stop]
Execute = ( s6-rmrf ${Socket} )

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