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

Diff of /monit/util.c

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

revision 1.46 by martinp, Fri Nov 29 23:23:31 2002 UTC revision 1.47 by martinp, Sun Dec 1 17:27:43 2002 UTC
# Line 431  void printprocess(Process_T p) { Line 431  void printprocess(Process_T p) {
431    Resource_T q;    Resource_T q;
432    Checksum_T c;    Checksum_T c;
433    Timestamp_T t;    Timestamp_T t;
434      Dependant_T d;
435    
436    ASSERT(p);    ASSERT(p);
437    
# Line 439  void printprocess(Process_T p) { Line 440  void printprocess(Process_T p) {
440    printf(" %-20s = %s\n", "Pid file", p->pidfile);    printf(" %-20s = %s\n", "Pid file", p->pidfile);
441    printf(" %-20s = %s\n", "Monitoring mode", modenames[p->mode]);    printf(" %-20s = %s\n", "Monitoring mode", modenames[p->mode]);
442    if(p->start)    if(p->start)
443        printf(" %-20s = %s\n", "Start program", is_str_defined(p->start->arg[0]));      printf(" %-20s = %s\n", "Start program", is_str_defined(p->start->arg[0]));
444    if(p->stop)    if(p->stop)
445        printf(" %-20s = %s\n", "Stop program", is_str_defined(p->stop->arg[0]));      printf(" %-20s = %s\n", "Stop program", is_str_defined(p->stop->arg[0]));
446    
447    for(c= p->checksumlist; c; c= c->next) {    for(c= p->checksumlist; c; c= c->next) {
448            
# Line 449  void printprocess(Process_T p) { Line 450  void printprocess(Process_T p) {
450            
451    }    }
452    
453      for(d= p->dependantlist; d; d= d->next)
454        if(d->dependant != NULL)
455          printf(" %-20s = %s\n", "Dependant Process", d->dependant);
456    
457    if(! p->portlist) {    if(! p->portlist) {
458            
459      printf(" %-20s = (not defined)\n", "Host:Port");      printf(" %-20s = (not defined)\n", "Host:Port");

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

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