[main]
@type = classic
@version = @version@
@description = "Create and start a nested scandir for @I"
@user = ( root )
@depends = ( setenv@@I )
@notify = 3
@timeout-kill = 3000
@options = ( log )

[start]
@runas = @I
@execute = (
    s6-setsid -qb --
    umask 022
    execl-cmdline -s { 66 ${Args66} scandir ${ArgsScandirStart} }
)

[stop]
@runas = @I
@execute = (
    execl-cmdline -s { 66 ${Args66} scandir ${ArgsScandirStop} }
)

[environment]
Args66=!@verbosity_level@ @live_dir@
ArgsScandirStart=!start @notify@ @use_environment@
ArgsScandirStop=!stop