code: def _set_init_system(self, client):
          
          if not self.init_system:
              try:
                  out = ipa_utils.execute_ssh_command(
                      client,
                      'ps -p 1 -o comm='
                  )
              except Exception as e:
                  raise IpaDistroException(
                      'An error occurred while retrieving'
                      ' the distro init system: %s' % e
                  )
              if out:
                  self.init_system = out.strip()
docs: Determine the init system of distribution.