Logo Search packages:      
Sourcecode: fail2ban version File versions  Download package

def utils::pidlock::PIDLock::__impl::exists (   self  ) 

Returns the current PID if Fail2Ban is running or False
      if no instance found.

Definition at line 77 of file pidlock.py.

00077                             :
                  """ Returns the current PID if Fail2Ban is running or False
                        if no instance found.
                  """
                  try:
                        fileHandler = open(self.path)
                        pid = fileHandler.readline()
                        fileHandler.close()
                        return pid
                  except IOError:
                        return False

      # storage for the instance reference
      __instance = None


Generated by  Doxygen 1.6.0   Back to index