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

Diff of /monit/spawn.c

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

revision 1.23 by hauk, Tue Jun 24 02:49:09 2003 UTC revision 1.24 by hauk, Wed Jul 2 19:32:03 2003 UTC
# Line 48  Line 48 
48  #include <sys/stat.h>  #include <sys/stat.h>
49  #endif  #endif
50    
51    #include "event.h"
52  #include "alert.h"  #include "alert.h"
53  #include "monitor.h"  #include "monitor.h"
54  #include "engine.h"  #include "engine.h"
# Line 200  void  spawn(Service_T S, Command_T C) { Line 201  void  spawn(Service_T S, Command_T C) {
201    
202  /*  /*
203   * Send an exec failed alert mail to those mail objects that has   * Send an exec failed alert mail to those mail objects that has
204   * registred interest for restart notification.   * registred interest for start/restart/stop notification.
205   */   */
206  static void exec_alert_mail(Service_T s, Command_T c) {  static void exec_alert_mail(Service_T s, Command_T c) {
207    
208    Mail_T a= s->maillist;    Mail_T a= s->maillist;
209    
210    for(; a; a= a->next)    for(; a; a= a->next)
211        if(a->alerts.alert_on_restart) {        if(IS_EVENT_SET(a->events, EVENT_RESTART) ||
212             IS_EVENT_SET(a->events, EVENT_START)   ||
213             IS_EVENT_SET(a->events, EVENT_STOP)) {
214          struct mymail m;          struct mymail m;
215          char message[STRLEN];          char message[STRLEN];
216                    

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

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