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

Diff of /monit/control.c

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

revision 1.57 by hauk, Fri Aug 1 21:35:59 2003 UTC revision 1.58 by hauk, Wed Aug 6 00:53:17 2003 UTC
# Line 194  void check_service(char *P, char *action Line 194  void check_service(char *P, char *action
194        return;        return;
195      }      }
196            
197      if(!s->start) {      if(s->task==TASK_PROCESS && !s->start) {
198        log("%s: Start method not defined -- process %s\n",        DEBUG("%s: Start method not defined -- process %s\n",
199              prog, P);              prog, P);
200        return;        return;
201      }      }
# Line 206  void check_service(char *P, char *action Line 206  void check_service(char *P, char *action
206            
207    } else if(IS(action, "stop")) {    } else if(IS(action, "stop")) {
208            
209      if(!s->stop) {      if(s->task==TASK_PROCESS && !s->stop) {
210        log("%s: Stop method not defined -- process %s\n",        DEBUG("%s: Stop method not defined -- process %s\n",
211              prog, P);              prog, P);
212        return;        return;
213      }      }
# Line 217  void check_service(char *P, char *action Line 217  void check_service(char *P, char *action
217            
218    } else if(IS(action, "restart")) {    } else if(IS(action, "restart")) {
219            
220      if(!s->start || !s->stop) {      if(s->task==TASK_PROCESS && (!s->start || !s->stop)) {
221        log("%s: Start or stop method not defined -- process %s\n",        DEBUG("%s: Start or stop method not defined -- process %s\n",
222              prog, P);              prog, P);
223        return;        return;
224      } else {      } else {
# Line 334  static int do_stop(Service_T s) { Line 334  static int do_stop(Service_T s) {
334            
335    }    }
336    
337    return FALSE;    return TRUE;
338        
339  }  }
340    

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58

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