Commit Graph

83 Commits

Author SHA1 Message Date
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
ad
5bf219a1a3 - Use _PATH_VARRUN.
- Address PR 10577 from mjl: recognise '.' as user/group seperator.
2000-07-13 11:28:50 +00:00
ad
543370583e parse(): be sure to clear *log before filling. 2000-07-11 12:06:32 +00:00
ad
ef0846927c - Detail flags in manpage using a table.
- Typo patrol.
- Add new flag, `p': keep zero'th historical log file uncompressed (plain).
  Inspired by woods' newsyslog package.
2000-07-11 11:39:46 +00:00
ad
e854f5df38 Sorry about breakage - no connectivity at evenings or weekends for me. Anyway:
- Put back `-n' option. This is a slight improvement on its predecessor.
- More paranoid error checking.
- Fix miscellaneous buglets.
2000-07-10 11:15:07 +00:00
assar
e2ba218ce3 print size_t as casted to (u_long) with %lu 2000-07-10 02:23:04 +00:00
aymeric
51ccad7517 newsyslog wouldn't parse the count field because sscanf return value was
tested against the wrong value (0 != 1)
2000-07-09 12:14:01 +00:00
ad
c9545d3e5d Back out previous two. 2000-07-07 15:42:35 +00:00
ad
136e84eb05 Redo previous slightly; add `-m' option to allow multiple instances. 2000-07-07 14:09:41 +00:00
ad
2f3d5bfcd0 Don't allow more than one instance when running as root. 2000-07-07 13:53:14 +00:00
ad
e55de4b4cf Overhaul newsyslog(8). Changes:
- Code cleanup.
- Better flowing English in manpage (in places).
- `-n' option has been removed (was mainly a debugging convenience, I think).
- Add `C' flag: create log file if one doesn't exist.
2000-07-07 10:52:41 +00:00
cgd
1fa77b6d55 Use:
.Sh SEE ALSO
rather than:
	.Sh "SEE ALSO"
The former is the correct form, and it makes a (barely persceptible)
difference in formatting for some output devices (e.g. 'ps').
1999-12-29 06:54:00 +00:00
ad
0ac257319d Create link to newsyslog.conf.5. 1999-12-07 11:28:13 +00:00