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

Diff of /monit/control.c

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

revision 1.8 by martinp, Sun Nov 3 21:50:30 2002 UTC revision 1.9 by rory, Tue Nov 5 20:47:23 2002 UTC
# Line 236  static void atomic_dcontrol_process(Proc Line 236  static void atomic_dcontrol_process(Proc
236   */   */
237  static void atomic_control_process(Process_T p, char *action) {  static void atomic_control_process(Process_T p, char *action) {
238    
   log("%s: (%s) %s\n", action, p->name, p->start->arg[0]);  
239    if(is(action, "start")) {    if(is(action, "start")) {
240      spawn(p, p->start);      if(! is_process_running(p)) {
241          log("%s: (%s) %s\n", action, p->name, p->start->arg[0]);
242          spawn(p, p->start);
243        }
244    }    }
245    else if(is(action, "stop")) {    else if(is(action, "stop")) {
246      spawn(p, p->stop);      if(is_process_running(p)) {
247          log("%s: (%s) %s\n", action, p->name, p->stop->arg[0]);
248          spawn(p, p->stop);
249        }
250    }    }
251        
252  }  }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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