Commit Graph

33 Commits

Author SHA1 Message Date
ad 22ee5fa9d2 Shiny new manpage for newsyslog(8), based on that from FreeBSD. 1999-11-30 12:04:14 +00:00
ad 604db10508 - Add '-F' option which forces rotation of logs (from FreeBSD).
- Add 'sigtype' field specifying signal to be sent (from FreeBSD).
- Add 'N' flag which specifies that no signal should be sent.
- Fix some breakage.
1999-11-30 12:03:24 +00:00
ad 37a134f54b Add a new optional parameter to the configuration file, specifying the
path to a file containing a PID to send SIGHUP to. If omitted, the default
is to signal syslogd. Idea from FreeBSD.
1999-10-06 13:26:28 +00:00
ad b545302160 Allow use of use of ':' to separate user and group names, since elsewhere
'.' is a valid character in user and group names. '.' still works, but
':' takes priority.
1999-10-05 12:11:27 +00:00
soren 30d18a154c Remove extraneous colons and newlines from perror(3) arguments. 1999-09-30 12:35:52 +00:00
tron dd5cffce70 "/var/run/syslog.pid" was renamed to "/var/run/syslogd.pid" recently. 1999-06-09 11:39:46 +00:00
christos 1b399e6819 char -> unsigned char and portable printf formats. 1998-12-19 20:10:08 +00:00
simonb b5c503ca40 Remove conditional strdup() compiled if OSF isn't defined, and -DOSF
from the Makefile to guarantee that the private version strdup() isn't
compiled in.
1998-07-29 01:31:50 +00:00
simonb a72208957e Remove useless BINOWN=root 1998-07-29 01:14:16 +00:00
mrg 2beab49a06 - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:45:41 +00:00
kleink fb7c0a91b5 Need <time.h> for time() and ctime() prototypes. 1998-04-02 10:35:26 +00:00
lukem 8ba07ab0b3 use CPPFLAGS instead of CFLAGS 1997-10-24 09:00:17 +00:00
lukem 6c49a51bc6 WARNSify, fix .Nm usage, getopt returns -1 not EOF 1997-10-19 06:23:50 +00:00
lukem 5d37ffa7eb fix the the typos 1996-11-10 23:58:22 +00:00
thorpej 1d4301453f RCS id police. 1996-09-27 01:56:55 +00:00
thorpej e8e306239b Correct behavior of setting number of saves to 0.
From Kenneth Stailey <kstailey@dol-esa.gov>, PR #2724.
1996-09-27 01:55:26 +00:00
pk 94f289c7bb Fix formatting of timestamp (Mike Grupenhoff; PR#1906). 1996-01-07 00:48:24 +00:00
jtc bea110759f Pass progname to the printf call in usage(). 1995-01-21 21:53:46 +00:00
jtc c15bd8dda9 Changed so that log entry format used when logfiles are rolled over
matches that of syslogd(8).  This is a slightly modified version of
the patch Thorsten Lockert supplied with PR #684.

Changed manpage to reflect the fact that we are using gzip instead
compress.
1995-01-06 19:20:20 +00:00
cgd 7bcf9338df specify man pages the new way. 1994-12-22 12:29:38 +00:00
pk 1a674dfd60 Check for reasonable syslog pid before HUPing.
Replace arbitrary constant by MAXPATHLEN.
1994-02-20 09:54:45 +00:00
cgd ecb9421ced compatibility fixes suggested by Luke Mewburn <lm@rmit.edu.au> 1994-02-07 07:00:26 +00:00
cgd 8a3e18b590 punt on newsyslog.conf.5 -- it wasn't appropriate. if somebody writes it... 8-) 1993-12-22 04:38:45 +00:00
cgd 5f5f68f982 the config file is in /etc, not /var/adm (which doesn't exist) 1993-10-05 00:51:20 +00:00
mycroft 7a5112319b Fix rcsid conflict. 1993-08-10 00:05:51 +00:00
cgd 0928aae252 a couple of doc fixes from Havard Eidnes, and a couple more
that i noticed.
1993-08-01 18:49:39 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft ea8be8d2e0 Change file name extension for new gzip. 1993-06-29 15:37:37 +00:00
cgd 414f33710e make installed file owned by root, to keep crond happy 1993-05-28 09:08:28 +00:00
cgd c210f82522 add use of "COMPRESS_POSTFIX" define, to determine what postfix
(e.g. ".Z", ".z", etc.) to append to compressed log files.
1993-05-22 03:52:17 +00:00
cgd 6da19b6501 use the correct (or so john brezak says) copyright. 1993-05-21 14:47:29 +00:00
cgd 90beb7e48c initial import of this log-rotation program to NetBSD 1993-05-21 14:43:59 +00:00