freezer.scheduler.daemon module

freezer.scheduler.daemon module

class freezer.scheduler.daemon.Daemon(daemonizable=None, pid_fname=None)

Bases: object

A class to manage all the daemon-related stuff

exit_flag = False
static handle_program_exit(signum, frame)
static handle_reload(signum, frame)
instance = None
pid
pid_fname
reload()
restart()
signal_map
start(dump_stack_trace=False)
status()
stop()
class freezer.scheduler.daemon.NoDaemon(daemonizable)

Bases: object

A class which shares the same interface as the Daemon class, but is used to execute the scheduler as a foreground process

exit_flag = False
static handle_program_exit(signum, frame)
static handle_reload(signum, frame)
instance = None
reload()
restart()
signal_map
start(dump_stack_trace=False)
status()
stop()
freezer.scheduler.daemon.get_filenos(logger)

Get a list of file no from logger

freezer.scheduler.daemon.is_process_running(pid)

Checks whether the process is running.

Parameters:pid – process pid to check
Returns:true if the process is running
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.