Changeset 170 for trunk/daemon


Ignore:
Timestamp:
07/12/05 15:57:01 (19 years ago)
Author:
bastiaans
Message:

daemon/togad.py:

  • Misc. cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/togad.py

    r169 r170  
    6161# Syntax: [ "<clustername>", "<clustername>" ]
    6262#
    63 ARCHIVE_DATASOURCES = [ "LISA Cluster" ]
     63ARCHIVE_DATASOURCES = [ "LISA Cluster", "LISA Test Cluster" ]
    6464
    6565# Where to store the archived rrd's
     
    641641                        return 0
    642642
    643                 debug_msg( 0, 'Non-recoverable XML error ' + str( exception ) )
     643                debug_msg( 0, 'FATAL ERROR: Non-recoverable XML error ' + str( exception ) )
    644644                sys.exit( 1 )
    645645
     
    692692                if self.s is None:
    693693
    694                         debug_msg( 0, 'ERROR: Could not open socket or unable to connect to datasource!' )
     694                        debug_msg( 0, 'FATAL ERROR: Could not open socket or unable to connect to datasource!' )
    695695                        sys.exit( 1 )
    696696
     
    13051305        """daemonized threading"""
    13061306
    1307         print 'daemon 1'
    13081307        # Fork the first child
    13091308        #
    13101309        pid = os.fork()
    13111310
    1312         print 'daemon 2'
    13131311        if pid > 0:
    13141312
    13151313                sys.exit(0)  # end parent
    13161314
    1317         print 'daemon 3'
    13181315        # creates a session and sets the process group ID
    13191316        #
     
    13241321        pid = os.fork()
    13251322
    1326         print 'daemon 4'
    13271323        if pid > 0:
    13281324
    13291325                sys.exit(0)  # end parent
    13301326
    1331         print 'daemon 5'
    13321327        # Go to the root directory and set the umask
    13331328        #
     
    13351330        os.umask(0)
    13361331
    1337         print 'daemon 6'
    13381332        sys.stdin.close()
    13391333        sys.stdout.close()
     
    13441338        os.dup(0)
    13451339
    1346         debug_msg( 0, 'daemon started.' )
    13471340        run()
    13481341
Note: See TracChangeset for help on using the changeset viewer.