(self, service_name, args)
AdminScript init.
AdminScript init.
AdminScript init .
def __init__(self, service_name, args):
        """AdminScript init."""
        skytools.DBScript.__init__(self, service_name, args)

        if len(self.args) < 2:
            self.log.error("need command")
            sys.exit(1)

        cmd = self.args[1]
        if cmd in self.commands_without_pidfile:
            self.pidfile = None

        if self.pidfile:
            self.pidfile = self.pidfile + ".admin"
def __init__ ( self , service_name , args ) : skytools . DBScript . __init__ ( self , service_name , args ) if len ( self . args ) < 2 : self . log . error ( "need command" ) sys . exit ( 1 ) cmd = self . args [ 1 ] if cmd in self . commands_without_pidfile : self . pidfile = None if self . pidfile : self . pidfile = self . pidfile + ".admin"