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