c.l.s.r.TacFile(Service) : class documentation

Part of canonical.launchpad.scripts.runlaunchpad View In Hierarchy

No class docstring
Method __init__ Create a TacFile object.
Method should_launch Return true if this service should be launched.
Method logfile Return the log file to use.
Method launch Launch the service, but do not block.
def __init__(self, name, tac_filename, section_name, pre_launch=None):
Create a TacFile object.
ParametersnameA short name for the service. Used to name the pid file.
tac_filenameThe location of the TAC file, relative to this script.
section_nameThe config section name that provides the launch, logfile and spew options.
pre_launchA callable that is called before the launch process.
@property
def should_launch(self):
Return true if this service should be launched.
@property
def logfile(self):
Return the log file to use.

Default to the value of the configuration key logfile.

def launch(self):
Launch the service, but do not block.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.