summaryrefslogtreecommitdiffstats
path: root/usr.sbin/newsyslog
Commit message (Collapse)AuthorAgeFilesLines
...
* Show the real revision date and not the date that thissteve1997-06-231-2/+2
| | | | manpage is being viewed.
* Allow a '-' flag as a placeholder so that path_to_pid_filebrian1997-05-062-14/+47
| | | | | | can be specified without the flags field. Fix bogus "trail" left in parse routine where the code jumps past the end of the line and wanders into oblivion.
* Do not kill -HUP syslog if running in user mode (-r), it allowsache1997-05-051-4/+4
| | | | private user logs rotation without error diagnostics
* 1) Add yet one optional field: pid file to send SIGHUP to if log rotatedache1997-05-042-39/+103
| | | | | | | | | | | (good thing for apache f.e.) This change is backward compatible with old newsyslog.conf files. 2) Do not compress log if SIGHUP sending failed for some reason (f.e. pid file deleted). Newcoming messages will be lost otherwise. 3) Misc cleanup while I am here.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-311-3/+3
| | | | posix standard on the topic.
* Add a missing period so that the -n option is display properlympp1997-02-281-2/+2
| | | | | | in the man page output. Closes PR# 2831. Submitted by: Marc Slemko <marcs@znep.com>
* Revert $FreeBSD$ to $Id$peter1997-02-223-3/+3
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-143-3/+3
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Convert to mdoc format.mpp1996-12-211-111/+103
|
* Doh! Actually read the patch I applied and see what it was *trying* to do,jkh1996-09-091-4/+5
| | | | | then make it do that. Error-of-my-ways-pointed-out-by: Bob Willcox <bob@luke.pmr.com>
* PR#2724 in NetBSD notes that newsyslog save log files even if the numberjkh1996-09-061-6/+15
| | | | | | of copies to save is zero. Incorporate suggested fix with some stylistic cleanup to make the resulting code more readable. Submitted-By: Kenneth Stailey <kstailey@dol-esa.gov>
* Added function prototypes and removed in-line prototypes of standardalex1996-06-081-27/+37
| | | | functions such as malloc and time.
* Fix uninitialized variable that caused a core dump if /etc/newsyslog.confalex1996-06-071-2/+2
| | | | | | was empty. Closes PR bin/1300. Found by: Brian Tao <taob@io.org>
* Submitted by: charnier@lirmm.fr (Philippe Charnier)graichen1996-01-162-82/+51
| | | | | | | | 1) correct MAX_PID according to system definition. 2) replace fprintf(stderr,...)/perror/exit by 4.4 equivalence. 3) make strings enough larger so they can't overflow: MAXHOSTNAMELEN for host and MAXPATHLEN for filenames. 4) call execl with correct parameters (compress -> gzip).
* Obtained from: NetBSD (PR#1906)graichen1996-01-091-4/+4
| | | | removed date formatting glitch in newsyslog
* Obtained from: NetBSDgraichen1996-01-053-0/+751
imported the newsyslog command from NetBSD - it make the "rotation" of the logfiles much simpler (it is currently done by "hand" in the /etc/[daily,weekly,monthly] scripts) - now it will be done by invoking newsyslog every hour which is very customizable via a /etc/newsyslog.conf file
OpenPOWER on IntegriCloud