]> git.llucax.com Git - software/pymin.git/commitdiff
Bugfix: InitdHandler.timer_handler() had undefined variables.
authorLeandro Lucarella <llucax@gmail.com>
Sun, 11 Nov 2007 20:00:41 +0000 (17:00 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Sun, 11 Nov 2007 20:00:41 +0000 (17:00 -0300)
pymin/services/util.py

index 91d28c3213830bd5064d5c4705bd2a449088e831..739b10908dcb6b4abebec05cd32eb81500b0445c 100644 (file)
@@ -643,10 +643,10 @@ class InitdHandler(ServiceHandler):
         p = subprocess.Popen(('pgrep', '-f', self._initd_name),
                                 stdout=subprocess.PIPE)
         pid = p.communicate()[0]
         p = subprocess.Popen(('pgrep', '-f', self._initd_name),
                                 stdout=subprocess.PIPE)
         pid = p.communicate()[0]
-        if p.wait() == 0 and len(pid) > 0:
-            c._service_running = True
+        if p.returncode == 0 and len(pid) > 0:
+            self._service_running = True
         else:
         else:
-            c._service_running = False
+            self._service_running = False
 
 class TransactionalHandler(Handler):
     r"""Handle command transactions providing a commit and rollback commands.
 
 class TransactionalHandler(Handler):
     r"""Handle command transactions providing a commit and rollback commands.