[Main]
Type = classic
Version = 0.0.2
Description = "dbus system daemon"
User = ( root )
MaxDeath = 3
Notify = 4
TimeoutStart = 3000

[Start]
Execute = (
     execl-toc -S ${Socket} -m 0755
    if {
         execl-toc -d /var/lib/dbus
         dbus-uuidgen --ensure
    }
     execl-cmdline -s {  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
