Received: by taz.hyperreal.com (8.6.12/8.6.5) id RAA23535; Fri, 14 Jun 1996 17:25:46 -0700 Received: from irene.pcug.co.uk by taz.hyperreal.com (8.6.12/8.6.5) with SMTP id RAA23526; Fri, 14 Jun 1996 17:25:43 -0700 Message-Id: <199606150025.RAA23526@taz.hyperreal.com> Received: from us1.imdb.com by irene.pcug.co.uk id aa26960; 15 Jun 96 1:25 BST Subject: Re: apache 1.1.1b3 corrections to support/httpd_monitor.c To: David J MacKenzie Date: Fri, 14 Jun 1996 19:25:35 -0500 (CDT) From: Rob Hartill In-Reply-To: from "David J MacKenzie" at Jun 14, 96 08:17:14 pm Organization: Internet Movie Database http://us.imdb.com/ X-Mailer: ELM [version 2.4 PL24 ME8a] Content-Type: text Content-Length: 3014 Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com 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 >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 . > >! >! * 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 . > >! * 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.