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

Part of lp.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 by default.
Method logfile Return the log file to use.
Method launch Run the service in a thread or external process.

Inherited from Service:

Method _setUp Undocumented
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 by default.
@property
def logfile(self):
Return the log file to use.

Default to the value of the configuration key logfile.

def launch(self):
Run the service in a thread or external process.

May block long enough to kick it off, but must return control to the caller without waiting for it to shutdown.

API Documentation for Launchpad, generated by pydoctor at 2018-11-19 00:00:14.