- Timestamp:
- 07/12/05 15:57:01 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/daemon/togad.py
r169 r170 61 61 # Syntax: [ "<clustername>", "<clustername>" ] 62 62 # 63 ARCHIVE_DATASOURCES = [ "LISA Cluster" ]63 ARCHIVE_DATASOURCES = [ "LISA Cluster", "LISA Test Cluster" ] 64 64 65 65 # Where to store the archived rrd's … … 641 641 return 0 642 642 643 debug_msg( 0, ' Non-recoverable XML error ' + str( exception ) )643 debug_msg( 0, 'FATAL ERROR: Non-recoverable XML error ' + str( exception ) ) 644 644 sys.exit( 1 ) 645 645 … … 692 692 if self.s is None: 693 693 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!' ) 695 695 sys.exit( 1 ) 696 696 … … 1305 1305 """daemonized threading""" 1306 1306 1307 print 'daemon 1'1308 1307 # Fork the first child 1309 1308 # 1310 1309 pid = os.fork() 1311 1310 1312 print 'daemon 2'1313 1311 if pid > 0: 1314 1312 1315 1313 sys.exit(0) # end parent 1316 1314 1317 print 'daemon 3'1318 1315 # creates a session and sets the process group ID 1319 1316 # … … 1324 1321 pid = os.fork() 1325 1322 1326 print 'daemon 4'1327 1323 if pid > 0: 1328 1324 1329 1325 sys.exit(0) # end parent 1330 1326 1331 print 'daemon 5'1332 1327 # Go to the root directory and set the umask 1333 1328 # … … 1335 1330 os.umask(0) 1336 1331 1337 print 'daemon 6'1338 1332 sys.stdin.close() 1339 1333 sys.stdout.close() … … 1344 1338 os.dup(0) 1345 1339 1346 debug_msg( 0, 'daemon started.' )1347 1340 run() 1348 1341
Note: See TracChangeset
for help on using the changeset viewer.