]> git.llucax.com Git - software/pymin.git/blobdiff - pymin/services/dns/__init__.py
Add logging to pymin.services.dhcp module.
[software/pymin.git] / pymin / services / dns / __init__.py
index 7d09c2fc9a4762a66702377e53375679563451ec..9324afbba3006c73e3031e9329d22c05d5d2c6a8 100644 (file)
@@ -162,6 +162,18 @@ class DnsHandler(Restorable, ConfigWriter, InitdHandler, TransactionalHandler,
             return False # Do reload
         return True # we don't need to reload
 
+    # HACK!!!!
+    def handle_timer(self):
+        import subprocess
+        p = subprocess.Popen(('pgrep', '-f', '/usr/sbin/named'),
+                                stdout=subprocess.PIPE)
+        pid = p.communicate()[0]
+        if p.returncode == 0 and len(pid) > 0:
+            self._service_running = True
+        else:
+            self._service_running = False
+
+
 
 if __name__ == '__main__':