/forever

Forever: auto restart any script if it stops printing.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Forever

Auto restart any script if it stops printing.

Install

pip install forever

Usage

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

Examples

python -m forever.run -t 3 -i 3 python -u -m forever.example