summaryrefslogtreecommitdiff
path: root/usr.bin/newsyslog
AgeCommit message (Collapse)Author
2000-06-02Explicitly state that newsyslog does not send a HUP to syslogd ifTodd C. Miller
you tell it to run a command for the log file.
2000-03-10Various cleanups and standardization.Aaron Campbell
2000-03-05Finish standardizing options list introduction.Aaron Campbell
1999-11-11Add support for sending signals other than SIGHUP and optionallyTodd C. Miller
run a command instead of sending a signal.
1999-11-09calloc an array of char *, not pid_t (left over from previous implementation).Todd C. Miller
1999-11-09Avoid sending a HUP to a process multiple times. Ie: instead of oneTodd C. Miller
per log file, do one per pid file (but only if the pid file corresponds to a log file that was rotated).
1999-11-07compress_log() now needs to check for noaction != 0Todd C. Miller
1999-11-07Don't send a HUP or compress the log files until _everything_ has beenTodd C. Miller
rotated. Fixes a race condition between syslogd and newsyslog whereby syslogd could be reinitializing (due to SIGHUP) while newsyslog was rotating the next log file.
1999-11-07o Some KNF + consistent indentation for readabilityTodd C. Miller
o When pid file cannot be opened give a sensible warning o Use fchmod when we can o Check more return values o Use uid_t/gid_t when sensible o When computing kbytes from blocks do so in such a way that is not likely to cause wrap. o Sanity check path lengths to avoid chance of oflow
1999-11-06Back out version 1.21 since it breaks age rotation.Todd C. Miller
1999-11-06back out unwanted private changeTodd C. Miller
1999-11-06Use fchmod instead of chmod and open() instead of creat().Todd C. Miller
1999-10-13age_old_log() now takes an int * as a parameter so it can return -1Todd C. Miller
on failure w/o the caller thinking the difference in mtime is -1. Just set modtime to 0 in this case in the caller which effectively ignores it. This fixes a problem where if there was now foo.0 file newsyslog would rotate an empty file.
1999-08-27Replace some strlen with sizeof() - 1.Federico G. Schwindt
Don't forget to malloc space for newline. Suggested by aazubel@cnba.uba.ar; ok millert@
1999-07-03remove redundant .Pp macrosAaron Campbell
1999-06-08fewer stringskstailey
1999-06-05capitalize the acronym IDAaron Campbell
1999-06-05- remove trailing white spaceAaron Campbell
- remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/
1999-05-23remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonAaron Campbell
is used instead; kwesterback@home.com
1999-05-12efault -> default; steve@tightrope.demon.co.ukAaron Campbell
1999-03-08numlogs cannot be negative; karls@inet.noTodd C. Miller
1999-01-05do not concern ourselves with MAX_PIDTheo de Raadt
1999-01-04MIN_PID should be 4 since update is proc 3 nowTodd C. Miller
1998-12-28crank PID_MAX to 99999Theo de Raadt
1998-12-16more .Nm fixesAaron Campbell
1998-11-11remove redundant .Pp macrosAaron Campbell
1998-09-27usr.bin/ man page cleanups, n-sAaron Campbell
1998-09-24Add optional support for pid files other than /var/run/syslog.pidTodd C. Miller
Useful for rotating httpd logs.
1998-04-25be more verbose on errors.Michael Shalayeff
one typo in fchown error msg
1998-03-07he -> the, and simplified a warningDavid Leonard
1997-07-10NULLkstailey
1997-07-08err()/warn()Jason Downs
1997-07-08Note about email and notifications.Jason Downs
1997-07-07Updated, mandoc, manual.Jason Downs
1997-07-07Add rudimentary logfile monitoring capabilities; enable by placing an 'M'Jason Downs
in the flags field, followed by the username to be notified in an additional (optional, based on the presence of 'M' in flags) field. Man page to follow...
1997-04-27Prototype fixes and cruft removal.Jason Downs
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-12-10"the the" purgeTheo de Raadt
1996-12-07increase buf sizes, hacked w/ bitbltTheo de Raadt
1996-09-02Save the log file if the original number of days was > 0; don't rely onThorsten Lockert
being able to use numdays after aging the existing logfiles
1996-08-31do ngen == 0 correctly; netbsd pr#2724; kstailey@dol-esa.govTheo de Raadt
1996-07-22rcsid cleanupTheo de Raadt
1996-06-26rcsidTheo de Raadt
1996-01-07date formatting glitch; from kashmir@umiacs.UMD.EDU; netbsd pr#1906Theo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt