|
| __init__ (self, host=PGF_HOST, port=LOGPORT, pidfile=LOGPIDFILE, stdin='/dev/null', stdout='/dev/null', stderr='/dev/null') |
| Constructor.
|
|
| status (self) |
| Determines whether the server is running or not.
|
|
| run (self) |
| Runs the server.
|
|
| daemonize (self) |
| Do the UNIX double-fork magic, see Stevens' "Advanced
Programming in the UNIX Environment" for details (ISBN 0201563177) http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16.
|
|
| delpid (self) |
| Deletes the PID file.
|
|
| start (self) |
| Start the daemon.
|
|
| stop (self) |
| Stop the daemon.
|
|
| restart (self) |
| Restart the daemon.
|
|
|
| pidfile = pidfile |
|
| stdin = stdin |
|
| stderr = stdout |
|
| stdout = stderr |
|
| host = host |
|
| port = port |
|
| server = LogRecordSocketReceiver(host=self.host, port=self.port) |
|
| stdin = stdin |
|
| stdout = stdout |
|
| stderr = stderr |
|
| pidfile = pidfile |
|
| delpid |
|
|
| _isprocessrunning (self, pid) |
| Checks if the process with provided pid is running by checking the /proc directory.
|
|
◆ __init__()
Lib.rave_pgf_logger.rave_pgf_logger_server.__init__ |
( |
| self, |
|
|
| host = PGF_HOST, |
|
|
| port = LOGPORT, |
|
|
| pidfile = LOGPIDFILE, |
|
|
| stdin = '/dev/null', |
|
|
| stdout = '/dev/null', |
|
|
| stderr = '/dev/null' ) |
Constructor.
- Parameters
-
host | URI to the host for this server. |
port | int port number to the host for this server. |
pidfile | string file name to which to write the server's PID |
stdin | string path to where to direct stdin |
stdout | string path to where to direct stdout |
stderr | string path to where to direct stderr |
Reimplemented from Lib.rave_daemon.Daemon.
◆ run()
Lib.rave_pgf_logger.rave_pgf_logger_server.run |
( |
| self | ) |
|
◆ status()
Lib.rave_pgf_logger.rave_pgf_logger_server.status |
( |
| self | ) |
|
Determines whether the server is running or not.
The documentation for this class was generated from the following file: