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

Diff of /monit/control.c

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

revision 1.96 by martinp, Fri Aug 12 22:06:46 2005 UTC revision 1.97 by martinp, Mon Sep 5 09:51:37 2005 UTC
# Line 446  static void *wait_start(void *service) { Line 446  static void *wait_start(void *service) {
446    }    }
447        
448    if(!Util_isProcessRunning(s)) {    if(!Util_isProcessRunning(s)) {
449      Event_post(s, EVENT_EXEC, TRUE, s->action_EXEC,      Event_post(s, EVENT_EXEC, STATE_FAILED, s->action_EXEC,
450        "'%s' failed to start", s->name);        "'%s' failed to start", s->name);
451    } else {    } else {
452      Event_post(s, EVENT_EXEC, FALSE, s->action_EXEC,      Event_post(s, EVENT_EXEC, STATE_PASSED, s->action_EXEC,
453        "'%s' started", s->name);        "'%s' started", s->name);
454    }    }
455    
# Line 484  static int wait_stop(Service_T s) { Line 484  static int wait_stop(Service_T s) {
484    }    }
485    
486    if(Util_isProcessRunning(s)) {    if(Util_isProcessRunning(s)) {
487      Event_post(s, EVENT_EXEC, TRUE, s->action_EXEC,      Event_post(s, EVENT_EXEC, STATE_FAILED, s->action_EXEC,
488        "'%s' failed to stop", s->name);        "'%s' failed to stop", s->name);
489      return FALSE;      return FALSE;
490    } else {    } else {
491      Event_post(s, EVENT_EXEC, FALSE, s->action_EXEC,      Event_post(s, EVENT_EXEC, STATE_PASSED, s->action_EXEC,
492        "'%s' stopped", s->name);        "'%s' stopped", s->name);
493    }    }
494    

Legend:
Removed from v.1.96  
changed lines
  Added in v.1.97

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