Changeset 21 for trunk/daemon/togad.py


Ignore:
Timestamp:
03/23/05 16:06:58 (18 years ago)
Author:
bastiaans
Message:

daemon/togad.py:

Minor adjustments for running daemon'ized

  • Will now let daemon run a day for testing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/togad.py

    r20 r21  
    3535#
    3636ARCHIVE_HOURS_PER_RRD = 24
     37
     38# Interval at which to grab&store XML
     39#
     40GRAB_INTERVAL = 15
    3741
    3842######################
     
    192196                sys.stdin.close()
    193197                sys.stdout.close()
    194                 if (DEBUGLEVEL == 0):
    195                         sys.stderr.close()
     198                sys.stderr.close()
    196199
    197200                os.open('/dev/null', 0)
     
    206209                while ( 1 ):
    207210                        self.processXML()
    208                         time.sleep( 5 )
     211                        time.sleep( GRAB_INTERVAL )
    209212
    210213        def processXML( self ):
     
    388391
    389392        myProcessor = GangliaXMLProcessor()
    390         myProcessor.processXML()
     393        #myProcessor.processXML()
     394        myProcessor.daemon()
    391395
    392396def check_dir( directory ):
Note: See TracChangeset for help on using the changeset viewer.