Supay 0.0.7

Operating systemsOS : Windows / Linux / Mac OS / BSD / Solaris
Program licensingScript Licensing : GPL - GNU General Public License
CreatedCreated : Sep 10, 2010
Size downloadDownloads : 4
Program licensing
Thank you for voting...

The module would make sure to daemonize correctly a ...

The module would make sure to daemonize correctly a process, running Python script or thread.
There are a few methods available with the module, here a short description of each one:
start - Detaches a Python script from the terminal and assigns a pid to the process
stop - Finds the process with the matching PID and stops it.
spawn - Will create a new instance of the Python script (Warning: this should time out or you will not be able to stop the process. )
restart - Although there is no 'restart' method, you can easily integrate the stop and restart together so they can perform a full restart of your daemon.
status - This is a very easy way to check the status your script. It will return information on the terminal about the specific PID of your process and if it is running or not.
Most important functions of Supay by Alfredo Deza:
Fit for usage in:
• Daemonize a Python process (a script or a call)
• Accept calls to STOP, START, SPAWN child processes.
• Manage processes PID numbers.
• Check the STATUS of a process.
• Redirect output (stderr, stdin, stdout) to a log file.
• Tries to write a PID file to "/var/run/scriptName" Gives an error if you do not have permissions. You can also change this when initializing the Daemon class.
• Stderr, Stdout and Stdin all try to write to "/var/log/scriptName"
• If a name for the running script is not given "PythonDaemon" is used.
• Verbose is set to True, this will show output when starting or stopping the daemon at the terminal.
• Python 2. 6 or higher

Supay 0.0.7 scripting tags: script, create daemon, process, pid, python module, supay, daemonize script, restart. What is new in Supay 0.0.7 software script? - Unable to find Supay 0.0.7 news. What is improvements are expecting? Newly-made Supay 0.1 will be downloaded from here. You may download directly. Please write the reviews of the Supay. License limitations are unspecified.