httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <r...@imdb.com>
Subject Re: apache 1.1.1b3 corrections to support/httpd_monitor.c
Date Sat, 15 Jun 1996 00:25:35 GMT

hi,

it looks like httpd_monitor.c will be pulled from the distribution because
nobody wants to suport it.

sorry,
rob

-=-=-=-=-

'David J MacKenzie' wrote
>
>From: David MacKenzie <djm@va.pubnix.com>
>Subject: correct the usage information in httpd_monitor.c
>Affects: support/httpd_montior.c
>ChangeLog: Fix usage() message and comment.
>Comments: Since this is unusable by default on most systems and
>there's no comment anywhere telling how to make it usable, and
>there's now a status module, it's no wonder this slipped past!
>
>*** 1.1	1996/06/14 23:55:44
>--- httpd_monitor.c	1996/06/15 00:13:46
>***************
>*** 49,61 ****
>   * For more information on the Apache Group and the Apache HTTP server
>   * project, please see <http://www.apache.org/>.
>  
>! 
>!  * simple script to monitor the child Apache processes
>!  *   Usage:
>!  *      httpd_monitor -p pid_file -s sleep_time
>!  *                Will give you an update ever sleep_time seconds
>!  *                 using pid_file as the location of the PID file.
>!  *                If you choose 0, it might chew up lots of CPU time.
>   *
>   * Output explanation..
>   *
>--- 49,59 ----
>   * For more information on the Apache Group and the Apache HTTP server
>   * project, please see <http://www.apache.org/>.
>  
>!  * Program to monitor the child Apache processes.
>!  * Only works if you add -DNO_MMAP to CFLAGS in the Apache Configuration file,
>!  * or if your system has HAVE_SHMGET defined in conf.h, if you comment out that #define.
>!  * 
>!  * See usage() for a description of the arguments.
>   *
>   * Output explanation..
>   *
>***************
>*** 117,124 ****
>      int usage();
>  
>      /*
>!      * Handle the options. Using getopt() is most probably overkill,
>!      * but let's think about the future!
>       */
>      strcpy(conf_name, HTTPD_ROOT);
>      while((achar = getopt(argc,argv,"s:d:f:")) != -1) {
>--- 115,121 ----
>      int usage();
>  
>      /*
>!      * Handle the options.
>       */
>      strcpy(conf_name, HTTPD_ROOT);
>      while((achar = getopt(argc,argv,"s:d:f:")) != -1) {
>***************
>*** 226,236 ****
>  usage(arg)
>  char *arg;
>  {
>!     printf("httpd_monitor: Usage\n");
>!     printf("  httpd_monitor [ -d config-dir] [ -s sleep-time ]\n");
>!     printf("    Defaults: config-dir = %s\n", HTTPD_ROOT);
>!     printf("              sleep-time = %d seconds\n", DEFAULT_SLEEPTIME);
>!     exit(0);
>  }
>  
>  /*
>--- 223,233 ----
>  usage(arg)
>  char *arg;
>  {
>!   fprintf(stderr, "Usage: httpd_monitor [-d config-dir] [-f config-file] [-s sleep-seconds]\n");
>!   fprintf(stderr, "    Defaults: config-dir = %s\n", HTTPD_ROOT);
>!   fprintf(stderr, "             config-file = %s\n", SERVER_CONFIG_FILE);
>!   fprintf(stderr, "              sleep-time = %d seconds\n", DEFAULT_SLEEPTIME);
>!   exit(0);
>  }
>  
>  /*

-- 
Rob Hartill (robh@imdb.com)
The Internet Movie Database (IMDb)  http://www.imdb.com/
           ...more movie info than you can poke a stick at.

Mime
View raw message