Auto restart any script if it stops printing.
pip install forever
python -m forever.run [OPTIONS] SCRIPT [SCRIPT_ARGS]
Options:
-h, --help | show help message and exit |
-t TIMEOUT, --timeout TIMEOUT | |
timeout in seconds | |
-i INTERVAL, --interval INTERVAL | |
checking frequency in seconds |
python -m forever.run -t 3 -i 3 python -u -m forever.example