manu
3beea69ccd
Reset ziptype on each line. Failure to do this caused any log file to
...
be compressed if it was listed after a line using Z or J flag. For
instance, we compressed log2 with the config file below:
/var/log/log1 600 5 100 * Z
/var/log/log2 600 7 100 * -
2009-08-21 08:20:19 +00:00
christos
75a86bdab6
PR/40274: Takahiro Kambe: "P" flag stops rotating files.
2009-06-20 19:34:19 +00:00
lukem
c1ceae17f0
Enable WARNS=4 by default for usr.bin, except for:
...
awk bdes checknr compile_et error gss hxtool kgetcred kinit
klist ldd less lex locale login m4 man menuc mk_cmds
mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh
string2key telnet tn3270 verify_krb5_conf xlint
2009-04-14 22:15:16 +00:00
dogcow
06804711a0
Fix an embarrassing mistake regarding moving down log files. Reported by
...
(and fix included in) PR bin/40635 from Jukka Salmi.
2009-02-17 02:56:43 +00:00
christos
0b379a7b85
64 bit time_t
2008-12-29 01:35:09 +00:00
christos
3f3059c920
fix compilation issue
2008-10-31 20:53:46 +00:00
christos
1c6aec2060
Import syslogd SoC project by Martin Schuette:
...
- new syslog protocol api syslogp(3) that supports structured data
and draft-rfc timestamps
- reliable tcp connections with queueing
- encrypted connections
2008-10-31 16:12:18 +00:00
snj
787df2d0dd
Bump date for bzip2.
2007-12-21 19:45:33 +00:00
dogcow
a9d4845398
It doesn't seem worth it to keep pathnames.h around (especially when it has
...
non-static data)
2007-12-21 06:46:31 +00:00
simonb
75727a9ea5
Fix some whitespace nits.
2007-12-21 06:25:19 +00:00
dogcow
37f3200b59
add new flag to newsyslog(5): J to bzip2 files.
...
There are no longer any hardcoded gzip-specific args, yay.
And while I was at it, compiles with -Wsigned, too.
2007-12-21 05:40:59 +00:00
perry
8b0f9554ff
convert __attribute__s to applicable cdefs.h macros
2007-12-15 19:44:37 +00:00
christos
8c26d38e7b
WARNS=4, pass lint
2007-07-22 17:03:13 +00:00
ad
119899c354
Remove authors section, and update history where appropriate.
2006-11-13 16:33:56 +00:00
reed
3b5d4b35bd
Reworded, because it previously made it sound like it only sent a
...
signal if path_to_pid_file field is present.
Also mention that /var/run/syslogd.pid is used as the default
path_to_pid_file.
This was brought up on netbsd-help and Richard Braun suggested
this should be documented.
Reviewed by grant and wiz.
2005-04-21 17:33:31 +00:00
reed
403f0facb1
Fix grammar: s/sent the/sent to the/
2005-04-20 19:26:50 +00:00
dsl
dfdc37e2fe
Add (unsigned char) cast to ctype functions
2004-10-30 20:56:20 +00:00
fair
c680acdbd9
Document that the flags in the configuration file are parsed
...
in a case-insensitive manner, per PR 22985
2004-03-24 02:25:15 +00:00
skrll
eba79970b1
Remove the -fno-gcse-lm hack now that it is no longer needed.
2003-12-15 14:57:54 +00:00
lukem
6c22027ca8
On MACHINE_ARCH==arm, compile newsyslog(8) with -fno-gcse-lm.
...
Fixes PRs [toolchain/22986] [toolchain/23002] [toolchain/23217]
2003-10-26 01:56:54 +00:00
lukem
d048430db6
Various fixes for when ngen is 0.
2003-10-13 07:28:52 +00:00
erh
c0513eb911
Fix typo in the description of the -n option.
2003-08-25 19:06:57 +00:00
wiz
8da6fdd09d
Restrict ".Sm off" to the parts where it is wanted.
2003-06-27 22:25:08 +00:00
wiz
5606e5cc70
Correct spelling of "specification". From PR 20717 by Igor Sobrado.
2003-03-15 19:18:41 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
grant
2ceb845887
The correct capitalisation of 'NetBSD.org' is (you
...
guessed it) 'NetBSD.org'.
some mdoc fixes.
2003-02-14 15:59:16 +00:00
lukem
d348d3d723
tweaks for fparseln(3) move from libutil to libc:
...
- remove #include <util.h> if nothing else needed it
- remove LDFLAGS+=-lutil if nothing else needed it
2002-11-30 03:10:53 +00:00
wiz
7601fe2090
usable instead of useable. From Adrian Mrva.
2002-10-02 15:20:10 +00:00
grant
6f52a8d075
minor mdoc quoting nit.
2002-09-30 10:41:54 +00:00
grant
c3f8c787a1
New sentence, new line. Some mdoc cleanup.
2002-09-30 10:39:22 +00:00
itojun
b56aa08754
don't let newsyslog follow symlink (could be abused to do tricks).
...
OpenBSD PR 1913.
2002-06-27 03:10:15 +00:00
ad
6c64700280
Address PR 16291 by Markus W Kilbinger: newsyslog always compresses archived
...
log files.
2002-06-19 16:30:31 +00:00
heinz
bbae4f0cf0
synced field name with '/etc/newsyslog.conf' and clarified the 'size' unit
2002-03-29 02:45:54 +00:00
wiz
f78eb76cbe
achive is not a good word.
2002-02-11 10:57:57 +00:00
wiz
7983dccb45
Sort sections, use Nx.
2001-12-08 19:09:16 +00:00
wiz
aded0d2cce
Whitespace cleanup.
2001-12-01 16:43:07 +00:00
ad
75595a5abd
Don't sleep before compressing if we didn't send a signal.
2001-06-10 12:06:35 +00:00
ad
11527af796
Sleep for 10 seconds before compressing the old log.
2001-05-06 21:03:25 +00:00
ad
0feab73383
Get the correct signal type. Pointed out by Hauke Fath <hf@tangro.de> in
...
bin/12453, real fix by me.
2001-03-22 17:54:54 +00:00
ad
f93ec22c6d
If configured to rotate at a specfic time and no historical log exists, then
...
don't consider the age of the historical log.
2001-03-18 16:34:08 +00:00
lukem
279552d3db
fix up various .Nm abuses:
...
- keep the case consistent between the actual name and what's referenced.
e.g, if it's `foo', don't use '.Nm Foo' at the start of a sentence.
- remove unnecessary `.Nm foo' after the first occurrence (except for
using `.Nm ""' if there's stuff following, or for the 2nd and so on
occurrences in a SYNOPSIS
- use Sx, Ic, Li, Em, Sq, and Xr as appropriate
2000-11-07 06:43:24 +00:00
ad
07318ea12f
Document `-s' option.
2000-09-21 10:29:11 +00:00
ad
80064cab88
New option, `-s': don't bother with PID files or signals.
2000-09-21 10:27:34 +00:00
tron
0012d64356
Fixed reversed result test in call to chown(2) which caused bogus
...
error message.
2000-08-22 16:23:15 +00:00
tron
815deae8b6
Use vfork(2) instead of fork(2) to create child process for "gzip" and
...
wait until it terminates. Problem noted by Enami Tsugutomo on
"current-users@netbsd.org"
2000-08-22 14:20:17 +00:00
ad
a6ecf36d33
On NetBSD, the effect of the maximum age specification and specific interval
...
specification are independant of one another.
2000-08-09 13:57:22 +00:00
ad
1784978a24
- Wrap line.
...
- Minor oops in a comment.
2000-07-24 15:15:25 +00:00
ad
6afadc9fb4
Simple const.
2000-07-19 10:52:35 +00:00
enami
069d55ea4c
- Free storage allocated by fparseln.
...
- Handle comment only or empty line in the parser.
2000-07-19 07:22:53 +00:00
ad
677a105692
More work on newsyslog(8):
...
- Add some comments. It might be getting a little unclear what's going on.
- Make it useful as non-root.
Also, some new features taken from FreeBSD. The last two are not well
tested yet:
- Specifing log files on the command line limits operation to those files.
- Add cyclic time specification for periodic trimming.
- Add restricted ISO-8601 time specification for periodic trimming.
2000-07-18 15:59:24 +00:00