/[monit]/monit/monitor.c
ViewVC logotype

Diff of /monit/monitor.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.70 by martinp, Sun Sep 14 18:05:09 2003 UTC revision 1.71 by martinp, Sun Sep 14 18:34:01 2003 UTC
# Line 347  static void do_action(char **args) { Line 347  static void do_action(char **args) {
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")) {
# Line 476  static void do_action(char **args) { Line 477  static void do_action(char **args) {
477            
478    } else if(IS(action, "validate")) {    } else if(IS(action, "validate")) {
479            
     Run.validate= TRUE;  
480      validate();      validate();
481            
482    } else {    } else {
# Line 546  static RETSIGTYPE do_destroy(int sig) { Line 546  static RETSIGTYPE do_destroy(int sig) {
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();

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.71

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26