Small process control system without master process
This tool is designed for cases when supervisord or systemd is too heavy for you. It should be interesting for development purpose or in running something "without obligations"
Should work on Linux and MacOS. It's possible to make it running on other unix
Put zerod
script into your working directory and make it executable
Remember: zerod
is name-agnostic: you may rename it as you want, or make
its copy or symlink
If you decided to put zerod
script into your git repository, don't forget to
append your .gitignore
file with zerod.temp/
line
Let zerod
to build small example config. It should create .zerod
directory.
Then you have to open .zerod
directory and change example config
file:
The main variable you have to set is CMD
variable
Also you may allow zerod
to run many instancies of CMD
via setting MANY=1
Set RESTART=1
to make zerod
restart the process if it was stopped
You may also change other zerod
variables. Feel free to do it
Just start the CMD
Just stop all instancies of CMD
Stops all instancies of CMD
and then starts once
Logs are stored in .zerod/log
file, but I've add useful commands
Last log reading
Clear old logs
List of zerod
controlled processess. Check it after CMD
changing
You may add your scripts into .zerod/scripts
directory. Script working
directory will be the same as ./zerod
script is called. Environment variable
ZEROD
is passed to script referring to previously called ./zerod
script