together v0.11
Together
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 crystal, so you will need that installed, afterwards:
crystal build together.cr
Installation
For the moment, grab the executable built with the github action :
wget https://github.com/OriPekelman/together/releases/download/v0.11/together
chmod +x together
and put it somewher reasonable.
Authors
- Ori Pekelman - Initial work - Ori Pekelman
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
together
- 1
- 0
- 0
- 0
- 0
- almost 5 years ago
- June 19, 2020
MIT License
Tue, 03 Jun 2025 01:20:26 GMT