Skip to content

Python script for launch in daemon way of any software can be launched from the command line

License

Notifications You must be signed in to change notification settings

andreabac3/alwaysRun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Python script for launch in daemon way of any software can be launched from the command line

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages