Python script for launch in daemon way, software that must always remain running, such as web servers.
AlwaysRun will take care of creating logs, handling the error and resuming the execution of your software.
Just use the following synopsis: python3 alwaysRun.py yourCommandBash
You need to replace the keyword 'yourCommandBash' with for example "node server.js"
$ python3 alwaysRun.py node server.js
The current pid of subprocess: 9741
You can use it in any Unix or Windows terminal
If your program has to end, that's not what you're looking for.
Exit Code (1):
If you find an exit code 1 it means that you have forgotten the argvs, read the paragraph "How to Use" to fix.
- Andrea Bacciu - github