The freezer.scheduler.daemon Module

The freezer.scheduler.daemon Module

Copyright 2015 Hewlett-Packard

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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.

freezer 6.0.1.dev5