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

Diff of /monit/control.c

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

revision 1.49 by hauk, Tue Jun 17 17:54:15 2003 UTC revision 1.50 by hauk, Thu Jun 26 14:24:11 2003 UTC
# Line 140  void d_check_service(char *P, char *acti Line 140  void d_check_service(char *P, char *acti
140        
141    if(!s) {    if(!s) {
142            
143      error("%s: Cannot connect to the monit daemon. "      log("%s: Cannot connect to the monit daemon. "
144            "Did you start it with http support?\n", prog);            "Did you start it with http support?\n", prog);
145      goto error;      goto error;
146            
# Line 170  void check_service(char *P, char *action Line 170  void check_service(char *P, char *action
170    ASSERT(action);    ASSERT(action);
171    
172    if(NULL==(s= get_service(P))) {    if(NULL==(s= get_service(P))) {
173      error("%s: Cannot %s program '%s' -- not found in %s\n",      log("%s: Cannot %s program '%s' -- not found in %s\n",
174            prog, action, P, Run.controlfile);            prog, action, P, Run.controlfile);
175      return;      return;
176    }    }
# Line 193  void check_service(char *P, char *action Line 193  void check_service(char *P, char *action
193      }      }
194            
195      if(!s->start) {      if(!s->start) {
196        error("%s: Start method not defined -- process %s\n",        log("%s: Start method not defined -- process %s\n",
197              prog, P);              prog, P);
198        return;        return;
199      }      }
# Line 205  void check_service(char *P, char *action Line 205  void check_service(char *P, char *action
205    } else if(IS(action, "stop")) {    } else if(IS(action, "stop")) {
206            
207      if(!s->stop) {      if(!s->stop) {
208        error("%s: Stop method not defined -- process %s\n",        log("%s: Stop method not defined -- process %s\n",
209              prog, P);              prog, P);
210        return;        return;
211      }      }
# Line 216  void check_service(char *P, char *action Line 216  void check_service(char *P, char *action
216    } else if(IS(action, "restart")) {    } else if(IS(action, "restart")) {
217            
218      if(!s->start || !s->stop) {      if(!s->start || !s->stop) {
219        error("%s: Start or stop method not defined -- process %s\n",        log("%s: Start or stop method not defined -- process %s\n",
220              prog, P);              prog, P);
221        return;        return;
222      }      }

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50

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