Skip to content

imkk000/spawn-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

spawn-manager

Run N copies of a binary. Restart on exit. Kill all on shutdown.

Build

go build -o spawn-manager

Cross-compile for arm64:

GOOS=linux GOARCH=arm64 go build -o spawn-manager

Run

./spawn-manager -n 10 -- ./your-binary arg1 arg2

Flags

-n N          number of workers (default 1)
-grace D      grace period before SIGKILL (default 5s)
-backoff D    delay before respawning an exited worker (default 500ms)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages