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

Diff of /monit/util.c

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

revision 1.98 by chopp, Wed Oct 1 13:34:46 2003 UTC revision 1.99 by hauk, Thu Oct 2 02:17:36 2003 UTC
# Line 474  void printrunlist() { Line 474  void printrunlist() {
474    printf(" %-18s = %s\n", "Is Daemon", Run.isdaemon?"True":"False");    printf(" %-18s = %s\n", "Is Daemon", Run.isdaemon?"True":"False");
475    printf(" %-18s = %s\n", "Use process engine", Run.doprocess?"True":"False");    printf(" %-18s = %s\n", "Use process engine", Run.doprocess?"True":"False");
476    printf(" %-18s = %d seconds\n", "Poll time", Run.polltime);    printf(" %-18s = %d seconds\n", "Poll time", Run.polltime);
477    printf(" %-18s = %s\n", "Mail server", is_str_defined(Run.mailserver));    printf(" %-18s = ", "Mail server(s)");
478      if(Run.mailservers) {
479        MailServer_T mta= Run.mailservers;
480        for(mta= Run.mailservers; mta; mta= mta->next)
481            printf("%s%s", mta->host, mta->next?", ":" ");
482        printf("\n");
483      } else {
484        printf("localhost\n");
485      }
486    printf(" %-18s = %s\n", "Mail from", is_str_defined(Run.MailFormat.from));    printf(" %-18s = %s\n", "Mail from", is_str_defined(Run.MailFormat.from));
487    printf(" %-18s = %s\n", "Mail subject",    printf(" %-18s = %s\n", "Mail subject",
488           is_str_defined(Run.MailFormat.subject));           is_str_defined(Run.MailFormat.subject));

Legend:
Removed from v.1.98  
changed lines
  Added in v.1.99

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