summaryrefslogtreecommitdiffstats
path: root/usr.sbin/newsyslog
Commit message (Collapse)AuthorAgeFilesLines
* When warning that a log file can't be compressed, tell the reader whichjoe2000-08-151-1/+1
| | | | log file it was.
* Allow user to specify which logs to rotatedes2000-05-112-10/+25
|
* - implement logfile archivation to a separate, userhm2000-04-042-101/+426
| | | | | | | | | | | | configurable directory - implement alternate and more flexible way to specify logfile rotation time in addition to the ISO 8601 restricted format - cleanup the source which was a mix of several styles of persons who maintained it so far, ran through knfom script got from bde. Reviewed by: (in part) sheldonh and garyj
* Run newsyslog source through knfom script obtained from Bruce Evans.hm2000-04-041-415/+422
| | | | | | Joerg Wunsch suggested to do this to make the functional changes in the next commit to newsyslog (which were run through the same script) better visible.
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-1/+2
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* .Nm correctionscharnier1999-11-271-5/+8
|
* $Id$ -> $FreeBSD$peter1999-08-284-4/+4
|
* Correctly refer to the companion program rather than as "chown".obrien1999-07-281-5/+8
| | | | Clean up wording a little (like I have any idea what real English looks like...)
* Go back to allowing ``.'' as a username.group separator for backwardobrien1999-07-281-2/+3
| | | | | | | | | compatibility. : is still the documented non-ambiguous approach. The algorithm used will correctly parse david.obrien.staff as strrchar() is used, and in my mind more people would use a ``.'' in the username than the group name. Convinced by argument and patch by: sheldonh (with slight changes by me)
* Syntax for user/group is changed from "user.group" to "user:group" to beobrien1999-06-282-5/+13
| | | | consistant with chown(8).
* Fix description of size, it's in kilobytes, not bytes.chuckr1999-04-101-2/+3
|
* jkoshy forgot up update the heading date on the man page.wollman1999-01-281-2/+2
|
* Note that the 'owner.group' field is optional in the config file.jkoshy1999-01-271-3/+3
| | | | | PR: docs/9602 Submitted by: Kazuo Horikawa <horikawa@jp.freebsd.org>
* A slight bit of code and doco cleanup, but mostly:wollman1999-01-224-72/+284
| | | | | | | | Add the much-needed and long-desired ability to force the log rotation to take place on a specific day or time, and document same. This works by extending the syntax of the `when' field to allow a restricted ISO 8601 time specification, and performing the log rotation if newsyslog is run during the same hour as is specified.
* The largest PID is now 99999peter1998-12-231-2/+2
| | | | Reported by: Ben Stuyts <ben@stuyts.nl>
* Remove useless `BINOWN=root' now that it is the default.obrien1998-09-191-3/+1
|
* Add optional config file field: signal number to send (defaulted to HUP)ache1998-06-092-10/+43
| | | | F.e. apache restarts less agressively on USR1 then on HUP
* 1) kill -HUP syslog, even if compressing supposedly "binary" fileshoek1998-05-101-12/+16
| | | | | | | | | PR: docs/6385 2) -n (noaction) does not imply -r (run as non-root), since as of Rev. 1.12 (ache), -r changes actual behaviour. 3) missing \n from if(noaction) messages.
* Arg! Someone fixed the synopsis in -stable's newsyslog.8, but nothoek1998-05-102-4/+4
| | | | | in -current. However, they fixed both the ordering and the missing -F flag. Merge from 22 and fix ordering here, too.
* Fix the usage here, too (-F option).hoek1998-05-101-3/+3
| | | | Typo fix in comment ("Force the tim now matter what" s/tim/trim/)
* 1) Remove a line that somehow strayed from the one true path ofhoek1998-05-101-3/+2
| | | | | its sentence. 2) Fix usage (-F option).
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.charnier1998-03-231-2/+2
|
* Add "-F" (force) flag to newsyslog.pst1998-03-142-4/+14
| | | | Submitted by: Terry Lambert <terry@freebsd.org>
* Sleep 10secs after kill -HUP instead of 3secs, some daemons like Apacheache1997-11-301-2/+2
| | | | may have log time to re-configure
* Cosmetic in err() strings.charnier1997-10-062-51/+46
|
* 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