Date: Wed, 31 Mar 1999 00:20:01 -0800 (PST) From: "Chad R. Larson" <chad@freebie.dcfinc.com> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/10705 Message-ID: <199903310820.AAA86084@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/10705; it has been noted by GNATS. From: "Chad R. Larson" <chad@freebie.dcfinc.com> To: sheldonh@FreeBSD.org Cc: Subject: Re: bin/10705 Date: Tue, 30 Mar 1999 18:23:54 -0700 (MST) > Synopsis: enhancement to "newsyslog" So very, very sorry. An edit was somehow dropped out when I generated the diffs. Here's fixed: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= *** newsyslog.8 1999/03/19 21:35:16 1.1 --- newsyslog.8 1999/03/31 01:03:19 *************** *** 25,31 **** .Nd maintain system log files to manageable sizes .Sh SYNOPSIS .Nm newsyslog ! .Op Fl Fnrv .Op Fl f Ar config_file .Sh DESCRIPTION .Nm Newsyslog --- 25,31 ---- .Nd maintain system log files to manageable sizes .Sh SYNOPSIS .Nm newsyslog ! .Op Fl Fnrsv .Op Fl f Ar config_file .Sh DESCRIPTION .Nm Newsyslog *************** *** 149,154 **** --- 149,158 ---- .Nm not to trim the logs, but to print out what it would do if this option were not specified. + .It Fl s + Tell + .Nm + not to attempt to signal any daemon. .It Fl r Remove the restriction that .Nm *** newsyslog.c 1999/03/19 21:35:16 1.1 --- newsyslog.c 1999/03/31 01:12:55 *************** *** 90,95 **** --- 90,96 ---- int verbose = 0; /* Print out what's going on */ int needroot = 1; /* Root privs are necessary */ int noaction = 0; /* Don't do anything, just show it */ + int nokill = 0; /* Don't signal the syslog daemon */ int force = 0; /* Force the trim no matter what*/ char *conf = CONF; /* Configuration file to use */ time_t timenow; *************** *** 210,216 **** } optind = 1; /* Start options parsing */ ! while ((c=getopt(argc,argv,"nrvFf:t:")) != -1) switch (c) { case 'n': noaction++; --- 211,217 ---- } optind = 1; /* Start options parsing */ ! while ((c=getopt(argc,argv,"nrsvFf:t:")) != -1) switch (c) { case 'n': noaction++; *************** *** 218,223 **** --- 219,227 ---- case 'r': needroot = 0; break; + case 's': + nokill++; + break; case 'v': verbose++; break; *************** *** 234,240 **** static void usage() { ! fprintf(stderr, "usage: newsyslog [-Fnrv] [-f config-file]\n"); exit(1); } --- 238,244 ---- static void usage() { ! fprintf(stderr, "usage: newsyslog [-Fnrsv] [-f config-file]\n"); exit(1); } *************** *** 523,531 **** pid = 0; need_notification = notified = 0; ! if (pid_file != NULL) { ! need_notification = 1; ! pid = get_pid(pid_file); } if (pid) { --- 527,537 ---- pid = 0; need_notification = notified = 0; ! if (nokill == 0) { ! if (pid_file != NULL) { ! need_notification = 1; ! pid = get_pid(pid_file); ! } } if (pid) { -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -crl -- Chad R. Larson (CRL15) 602-953-1392 Brother, can you paradigm? chad@dcfinc.com chad@larsons.org chad@anasazi.com larson1@home.net DCF, Inc. - 14623 North 49th Place, Scottsdale, Arizona 85254-2207 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903310820.AAA86084>