| |
- __builtin__.object
-
- PidFile
- exceptions.Exception(exceptions.BaseException)
-
- ProcessRunning
class PidFile(__builtin__.object) |
|
Process id file management. |
|
Methods defined here:
- __del__(self)
- Remove pid file together with our instance.
- __init__(self, path, create=True)
- Create a pid file with the given path for the current process.
- kill(self)
- Kill our process.
- pid(self)
- Return our process id.
- remove(self, stale=False)
- Remove our pid file.
- running(self)
- Check whether our process is running.
- write(self)
- Write our pid file.
Static methods defined here:
- currentPID()
- Get the current process id.
- killPID(pid, sig=None)
- Kill the process with the given pid.
- pidRunning(pid)
- Check whether process with given pid is running.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
|