vaping.daemon
Classes
PluginContext
PluginContext(builtins.object)
Context to pass to plugins for getting extra information
Instanced Attributes
These attributes / properties will be available on instances of the class
- config (
@property
): config
Methods
__init__
def __init__(self, config)
Initialize self. See help(type(self)) for accurate signature.
Vaping
Vaping(builtins.object)
Vaping daemon class
Instanced Attributes
These attributes / properties will be available on instances of the class
- get_logging_handles (
@property
): None - log (
@property
): logger instance - pidfile (
@property
): None
Methods
__init__
def __init__(self, config=None, config_dir=None)
must either pass config as a dict or vaping.config.Config or config_dir as a path to where the config dir is located
_exec
def _exec(self, detach=True)
daemonize and exec main()
_main
def _main(self)
process
run
def run(self)
run daemon
start
def start(self)
start daemon
stop
def stop(self)
stop daemon