Trees | Indices | Help |
|
---|
|
Module with helper classes and functions for daemons
|
|||
SchedulerBreakout Exception used to get out of the scheduler loop |
|||
AsyncoreScheduler Event scheduler integrated with asyncore |
|||
GanetiBaseAsyncoreDispatcher Base Ganeti Asyncore Dispacher |
|||
AsyncStreamServer A stream server to use with asyncore. |
|||
AsyncTerminatedMessageStream A terminator separated message stream asyncore module. |
|||
AsyncUDPSocket An improved asyncore udp socket. |
|||
AsyncAwaker A way to notify the asyncore loop that something is going on. |
|||
Mainloop Generic mainloop for daemons |
|
|||
|
|||
|
|||
string |
|
||
|
|||
|
Imports: asyncore, asynchat, collections, os, signal, logging, sched, time, socket, select, sys, utils, constants, errors, netutils, ssconf, runtime, compat
|
Asyncore-compatible scheduler delay function. This is a delay function for sched that, rather than actually sleeping, executes asyncore events happening in the meantime. After an event has occurred, rather than returning, it raises a SchedulerBreakout exception, which will force the current scheduler.run() invocation to terminate, so that we can also check for signals. The main loop will then call the scheduler run again, which will allow it to actually process any due events. This is needed because scheduler.run() doesn't support a count=..., as asyncore loop, and the scheduler module documents throwing exceptions from inside the delay function as an allowed usage model. |
Verifies the process uid matches the configured uid. This method verifies that a daemon is started as the user it is intended to be run
|
Try to format an error better. Since we're dealing with daemon startup errors, in many cases this will be due to socket error and such, so we try to format these cases better.
|
Handler for SIGHUP.
|
Shared main function for daemons.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jul 24 16:51:19 2012 | http://epydoc.sourceforge.net |