347 |
|
|
348 |
if(! action) { |
if(! action) { |
349 |
|
|
350 |
|
Run.once= FALSE; |
351 |
do_default(); |
do_default(); |
352 |
|
|
353 |
} else if(IS(action, "start")) { |
} else if(IS(action, "start")) { |
477 |
|
|
478 |
} else if(IS(action, "validate")) { |
} else if(IS(action, "validate")) { |
479 |
|
|
|
Run.validate= TRUE; |
|
480 |
validate(); |
validate(); |
481 |
|
|
482 |
} else { |
} else { |
546 |
case SIGINT: |
case SIGINT: |
547 |
/* Fall trough */ |
/* Fall trough */ |
548 |
case SIGTERM: |
case SIGTERM: |
549 |
if(Run.isdaemon && !Run.validate) { |
if(Run.isdaemon && !Run.once) { |
550 |
if(Run.dohttpd) monit_http(STOP_HTTP); |
if(Run.dohttpd) monit_http(STOP_HTTP); |
551 |
log("%s daemon with pid [%d] killed\n", prog, (int)getpid()); |
log("%s daemon with pid [%d] killed\n", prog, (int)getpid()); |
552 |
finalize_files(); |
finalize_files(); |