Skip to content

codeskyblue/keeprun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

keeprun

Keep console program running.

Install

go get -v github.com/codeskyblue/keeprun

Usage

Usage of ./keeprun:
  -delay duration
        Delay between each restart (default 5s)
  -killon string
        Kill program when text appear

$ keeprun sleep 50
# restart sleep again when sleep down

When keeprun get SIGTERM, SIGHUP signal, process sleep will also be killed.

LICENSE

MIT

About

Keep console program running.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages