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

Diff of /monit/validate.c

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

revision 1.18 by hauk, Tue Oct 1 14:53:01 2002 UTC revision 1.19 by rory, Wed Oct 2 03:03:45 2002 UTC
# Line 249  static void do_restart(Process_T p, char Line 249  static void do_restart(Process_T p, char
249    
250    log("Trying to restart '%s'\n", p->name);    log("Trying to restart '%s'\n", p->name);
251        
252    stop_process(p);    control_process(p, "stop", FORCE_CONTROL);
253    sleep(10); /* Wait for process termination */    sleep(10); /* Wait for process termination */
254    
255    va_start(ap, m);    va_start(ap, m);
# Line 291  static void do_start(Process_T p, char * Line 291  static void do_start(Process_T p, char *
291    }    }
292    
293    /* Start process and take care of dependants */    /* Start process and take care of dependants */
294    force_process(p, PSTART);    control_process(p, "start", FORCE_CONTROL);
295    
296    /* (Re)start alert */    /* (Re)start alert */
297            
# Line 352  static void do_stop(Process_T p, char *m Line 352  static void do_stop(Process_T p, char *m
352    sleep(3); /* In case we gonna stop our own smtp server */    sleep(3); /* In case we gonna stop our own smtp server */
353    
354    /* Stop the process and dependants */    /* Stop the process and dependants */
355    force_process(p, PSTOP);    control_process(p, "stop", FORCE_CONTROL);
356    
357  }  }
358    

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

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