[main]
@type = oneshot
@version = @vers@
@description = "Launch all tree enabled of root user"
@user = ( root )
@depends = ( all-Mount all-System all-Local )
@options = ( !log )

[start]
@execute =
(
    if { 66-yeller -cdp all-Runtime -1 /dev/console starts... }
    if -nt {

        execl-envfile ${conf_file}
        66-all -v${VERBOSITY} -l ${LIVE} up

    }
    execl-envfile ${conf_file}
    66-yeller -Fcdp all-Runtime -1 /dev/console crashed! -- Your machine is operational but some runtime service failed to start correctly. Please see the complete boot log at ${LIVE}/log/0/current for further information.
)

[stop]
@execute =
(
    if { 66-yeller -cdp all-Runtime -1 /dev/console stops... }
    if -nt {

        execl-envfile ${conf_file}
        66-all -v${VERBOSITY} -T ${timeout} -l ${LIVE} down

    }
    ## use -F here, we don't want to crash to avoid to
    ## not bring down properly the rest of the service
    66-yeller -Fcdp all-Runtime -1 /dev/console crashed!
)

[environment]
conf_file=!@initconf@

## Time to wait to bring down services
timeout=!3000
