예제 #1
0
파일: Gamin.py 프로젝트: xschlef/bcfg2
 def start(self):
     """ The Gamin watch monitor in :attr:`mon` must be created by
     the daemonized process, so is created in ``start()``. Before
     the :class:`Gamin.WatchMonitor` object is created, monitors
     are added to :attr:`add_q`, and are created once the watch
     monitor is created."""
     FileMonitor.start(self)
     self.mon = WatchMonitor()
     for monitor in self.add_q:
         self.AddMonitor(*monitor)
     self.add_q = []
예제 #2
0
 def start(self):
     FileMonitor.start(self)
     self.mon = WatchMonitor()
     for monitor in self.add_q:
         self.AddMonitor(*monitor)
     self.add_q = []