Ejemplo n.º 1
0
 def is_running(self):
     '''Is the daemon running?'''
     ret = False
     try:
         pid = self.wait_for_daemon_pid()
         ret = psutils.pid_exists(pid)
     except TimeoutError:
         pass
     return ret
Ejemplo n.º 2
0
 def is_running(self):
     """Is the daemon running?"""
     ret = False
     if not self._shutdown:
         try:
             pid = self.wait_for_daemon_pid()
             ret = psutils.pid_exists(pid)
         except TimeoutError:
             pass
     return ret
Ejemplo n.º 3
0
 def is_running(self):
     '''Is the daemon running?'''
     ret = False
     if not self._shutdown:
         try:
             pid = self.wait_for_daemon_pid()
             ret = psutils.pid_exists(pid)
         except TimeoutError:
             pass
     return ret