virtual class slanUtil::Restarter

sys::Obj
  util::AbstractMain
    slanUtil::Restarter

run process auto restart on crash or file changed usage: fan ./Restarter.fan -watch bin/,res/ -time 1sec ./service.exe args

commands

@Arg { help="commands" }
Str? commands

run

virtual override Int run()

time

@Opt { help="checkTime" }
Duration time := 5.sec

watch

@Opt { help="watch list" }
Str? watch := Env.cur().workDir().toStr() + "lib/"