| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
log file it was.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
|
| |
|
| |
|
|
|
|
| |
Clean up wording a little (like I have any idea what real English looks like...)
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
consistant with chown(8).
|
| |
|
| |
|
|
|
|
|
| |
PR: docs/9602
Submitted by: Kazuo Horikawa <horikawa@jp.freebsd.org>
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Reported by: Ben Stuyts <ben@stuyts.nl>
|
| |
|
|
|
|
| |
F.e. apache restarts less agressively on USR1 then on HUP
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
in -current. However, they fixed both the ordering and the missing -F
flag. Merge from 22 and fix ordering here, too.
|
|
|
|
| |
Typo fix in comment ("Force the tim now matter what" s/tim/trim/)
|
|
|
|
|
| |
its sentence.
2) Fix usage (-F option).
|
| |
|
|
|
|
| |
Submitted by: Terry Lambert <terry@freebsd.org>
|
|
|
|
| |
may have log time to re-configure
|
| |
|
|
|
|
| |
manpage is being viewed.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
private user logs rotation without error diagnostics
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
| |
posix standard on the topic.
|
|
|
|
|
|
| |
in the man page output. Closes PR# 2831.
Submitted by: Marc Slemko <marcs@znep.com>
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
then make it do that.
Error-of-my-ways-pointed-out-by: Bob Willcox <bob@luke.pmr.com>
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
functions such as malloc and time.
|
|
|
|
|
|
| |
was empty. Closes PR bin/1300.
Found by: Brian Tao <taob@io.org>
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
removed date formatting glitch in newsyslog
|
|
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
|