def __init__(self): """<method internal="yes"/> """ self.ZORPCTLCONF = ZorpctlConfig.Instance() self.ZORPCTLCONF.parse() self.instances_conf_path = self.ZORPCTLCONF['ZORP_SYSCONFDIR'] + "/instances.conf" self.instances_conf_file = None
def __init__(self): self.ZORPCTLCONF = ZorpctlConfig.Instance() try: self.install_path = self.ZORPCTLCONF['ZORP_LIBDIR'] self.pidfiledir = self.ZORPCTLCONF['ZORP_PIDFILEDIR'] + "/" except KeyError as e: e.message = "You must specify the install directory of Zorp executable \ like ZORP_LIBDIR=='/usr/lib/zorp' and the directory where Zorp puts it's pid files \ like ZORP_PIDFILEDIR='/var/run/zorp', put it in to the zorpctl's configuration file!" raise e self.force = False self.instance = None
def __init__(self, process_name, handler=None): ZORPCTLCONF = ZorpctlConfig.Instance() self.pidfile_dir = ZORPCTLCONF['ZORP_PIDFILEDIR'] if not handler: handler = Handler self.handler = handler(self.pidfile_dir + '/zorpctl.' + process_name)