[Main]
Type = classic
Version = 0.0.2
Description = "brltty system daemon"
User = ( root )

[Start]
Execute = (
     execl-toc -d ${LiveDirectory}
    if {
         execl-toc -d /var/lib/brltty
    }
     execl-cmdline -s {  brltty ${Args} }
)

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

[Environment]
Args=!--no-daemon --writable-directory=${LiveDirectory}
LiveDirectory=!/run/brltty
