annoy programs by interrupting them
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
annyong.jpg
main.go

README.md

annyong

Hello

annyong is a program which annoys a given cmd with random interrupts

it can be useful to test services which need graceful interrupt handling

usage

annyong <flags> <cmd> <args>

will run the cmd with args n times and interrupt each one after a random time

to control the times and duration before interrupt, use the following flags (defaults indicated)

flags

-times=10 // number of times to re-launch the cmd
-minwait=1 // minimum seconds to wait before interrupting
-maxwait=10 // maximum seconds to wait before interrupting
-parallel=false // when true runs the cmd in parallel using goroutines
-quit=true // when true stop after receiving the first non-zero return code (unused if -parallel=true)