Package ZenUtils :: Module ConfDaemon :: Class ConfDaemon
[show private | hide private]
[frames | no frames]

Class ConfDaemon

CmdBase --+
          |
         ConfDaemon


Method Summary
  __init__(self)
  becomeDaemon(self)
fork twice to become a daemon
  buildOptions(self)
basic options setup sub classes can add more options here
  forwardDnsLookup(self, hostname)
try the forward lookup dnstries times if it fails look in cache
  getConfig(self)
handle errors when loading config from server we try configtries times if no previous config is found
  getDnsTries(self)
  reverseDnsLookup(self, ip)
try the reverse lookup dnstries times if it fails look in cache
  sigTerm(self, signum, frame)
  _dnsLookup(self, function, target)
try dns lookup dnstries times
Inherited from CmdBase: buildParser, parseOptions, setupLogging

Class Variable Summary
Inherited from CmdBase: doesLogging

Method Details

becomeDaemon(self)

fork twice to become a daemon

buildOptions(self)

basic options setup sub classes can add more options here
Overrides:
ZenUtils.CmdBase.CmdBase.buildOptions (inherited documentation)

forwardDnsLookup(self, hostname)

try the forward lookup dnstries times if it fails look in cache

getConfig(self)

handle errors when loading config from server we try configtries times if no previous config is found

reverseDnsLookup(self, ip)

try the reverse lookup dnstries times if it fails look in cache

_dnsLookup(self, function, target)

try dns lookup dnstries times

Generated by Epydoc 2.1 on Thu Aug 16 09:55:09 2007 http://epydoc.sf.net