From 27719c46cd1486850c0576f2129a7fd6b5c6255b Mon Sep 17 00:00:00 2001 From: wollman Date: Fri, 22 Jan 1999 19:38:39 +0000 Subject: A slight bit of code and doco cleanup, but mostly: 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. --- usr.sbin/newsyslog/pathnames.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 usr.sbin/newsyslog/pathnames.h (limited to 'usr.sbin/newsyslog/pathnames.h') diff --git a/usr.sbin/newsyslog/pathnames.h b/usr.sbin/newsyslog/pathnames.h new file mode 100644 index 0000000..2eb271d --- /dev/null +++ b/usr.sbin/newsyslog/pathnames.h @@ -0,0 +1,27 @@ +/* + * This file contains changes from the Open Software Foundation. + */ + +/* + +Copyright 1988, 1989 by the Massachusetts Institute of Technology + +Permission to use, copy, modify, and distribute this software +and its documentation for any purpose and without fee is +hereby granted, provided that the above copyright notice +appear in all copies and that both that copyright notice and +this permission notice appear in supporting documentation, +and that the names of M.I.T. and the M.I.T. S.I.P.B. not be +used in advertising or publicity pertaining to distribution +of the software without specific, written prior permission. +M.I.T. and the M.I.T. S.I.P.B. make no representations about +the suitability of this software for any purpose. It is +provided "as is" without express or implied warranty. + + $Id$ + +*/ + +#define _PATH_CONF "/etc/newsyslog.conf" +#define _PATH_SYSLOGPID _PATH_VARRUN "syslog.pid" +#define _PATH_GZIP "/usr/bin/gzip" -- cgit v1.1