Ejemplo n.º 1
0
    def execute(self, **options):
        adtrust_is_enabled = self.api.Command['adtrust_is_enabled']()['result']

        if adtrust_is_enabled:
            self.log.debug('Try to enable and start oddjobd')
            sstore = sysrestore.StateFile(paths.SYSRESTORE)
            installutils.enable_and_start_oddjobd(sstore)
        else:
            self.log.debug('ADTrust not configured on this server, do not '
                           'start and enable oddjobd')

        return False, []
Ejemplo n.º 2
0
 def  __enable_and_start_oddjobd(self):
     installutils.enable_and_start_oddjobd(self.sstore)