procman
procman
, the process manager, helps manage the execution of long running processes.
Installation
Download your system's binary from the latest release. Releases are done automatically on every merge.
Usage
procman -h
The simplest invocation ensures that your command runs forever:
procman ls -lh
You can enforce restarts based on the process status:
procman -mem 50 python some_file.py
If you want to separate your command's stdout and stderr:
procman -logfile out ls -lh
Additionally, you can redirect procman's own logging:
procman -logfile command_out ls -lh > procman_out
Supported systems
Linux, macOS, and Raspberry Pi.
Windows is currently not supported.