Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1 KB

File metadata and controls

29 lines (20 loc) · 1 KB

alwaysRun

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.

How to use:

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

Note:

Use Case

You can use it in any Unix or Windows terminal
If your program has to end, that's not what you're looking for.

Fix error

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.

Authors