Skip to content

together can run multiple processes, together, such as that they live and die together. It is useful in the case you have a a supervising process that watches a single PID. This can be specifically interesting for container runtimes that expect a single process to run.

Notifications You must be signed in to change notification settings

OriPekelman/go-together

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Together

Go

together can run multiple processes, together, such as that they live and die together. It is useful in the case you have a a supervising process that watches a single PID. This can be specifically interesting for container runtimes that expect a single process to run.

It is in a way an 'anti-supervisor' it doesn't restart processes but rather makes sure that all processes die together.

Usage

together "long running process 1" "long running process 2" "another long running process"

For example:

together "sleep 5" "sleep 10"

Will spawn two processes, when the first one exits after 5 seconds its sibling will be killed too.

  • If any of the processes die, together will kill the others
  • If it receives a SIGTERM or a SIGINT it will kill the spawned processes

Compiling

together is written in go, so you will need that installed, afterwards:

make

Installation

For the moment, grab the executable built with the github action :

wget https://github.com/OriPekelman/go-together/releases/download/v0.0.0/together
chmod +x together

and put it somewher reasonable.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

together can run multiple processes, together, such as that they live and die together. It is useful in the case you have a a supervising process that watches a single PID. This can be specifically interesting for container runtimes that expect a single process to run.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published