Changeset 608
- Timestamp:
- 04/21/07 08:18:15 (2 years ago)
- Files:
-
- trunk/src/hefeweizen_ania.sh (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/hefeweizen_ania.sh
r511 r608 56 56 CONFIG=/etc/hefeweizen 57 57 CONFIG_FILE=$CONFIG/hefeweizen.conf 58 59 58 60 59 if [ -d $CONFIG -a -f $CONFIG/hefeweizen.conf -a -f $CONFIG/config.sh -a -f $CONFIG/log.sh ]; then … … 76 75 trap "echo 'infor: `date` - $$ - $0: ANIA Received signal INT, exitting ... '; run=false; echo 'dude_exit' > $PIPE_DIR/pipe_to_ania;" INT 77 76 78 79 77 inform ANIA starting with pid $$, parent $PPID 80 78 … … 87 85 export big_ania 88 86 export pipe_reader 89 90 # --------------------91 # list of functions92 # --------------------93 87 94 88 startup() … … 273 267 fi 274 268 done 275 276 277 269 278 270 } … … 302 294 # cleaning up all tasker monitors and taskers 303 295 shutdown_taskers 304 305 296 306 297 # shutdown system monitor … … 340 331 # then we know we could kill it. 341 332 342 343 333 (ps --pid $big_ania > /dev/null 2>&1) 344 334 big_ania_running=$? … … 357 347 debug big ania not present. not killing big ania 358 348 fi 359 360 349 } 361 350 … … 395 384 fi 396 385 fi 397 398 386 } 399 387 … … 409 397 return 0 410 398 } 411 412 413 # ---------------------414 # start ania415 # ---------------------416 399 417 400 startup … … 464 447 my_exit 0 465 448 466 # ---------------------- 467 # end ania 468 # ---------------------- 469 470 #counter_game_start=`date +%s-%N` 471 #counter_game_startx=`date` 472 #message_to_big_ania "counter game 100" 473 474 449 450
