summaryrefslogtreecommitdiffstats
path: root/usr.sbin/newsyslog
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2004-06-12 19:53:08 +0000
committergad <gad@FreeBSD.org>2004-06-12 19:53:08 +0000
commita1214ecb7b3a5536b459a68adb96489226a904ad (patch)
tree6dd4b34acd9babff9e94d0b50dd8f5bc500a297c /usr.sbin/newsyslog
parent8a4d60fb93b14b5a3d3a50dccd975dc9b633a2e3 (diff)
downloadFreeBSD-src-a1214ecb7b3a5536b459a68adb96489226a904ad.zip
FreeBSD-src-a1214ecb7b3a5536b459a68adb96489226a904ad.tar.gz
Switch to using the "neworder" for rotating log files, by default. The
main advantage of this is that daemon's are only signalled once per run, instead of once for each file that is rotated. MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/newsyslog')
-rw-r--r--usr.sbin/newsyslog/newsyslog.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c
index ea99374..bc8dcdb 100644
--- a/usr.sbin/newsyslog/newsyslog.c
+++ b/usr.sbin/newsyslog/newsyslog.c
@@ -90,6 +90,9 @@ __FBSDID("$FreeBSD$");
/* Define this symbol to try out the "new order" for work items. */
#define TRY_NEWORDER
+#ifndef USE_NEWORDER
+#define USE_NEWORDER 1 /* Initial value for dbg_new_order */
+#endif
/*
* Bit-values for the 'flags' parsed from a config-file entry.
@@ -162,7 +165,12 @@ SLIST_HEAD(swlisthead, sigwork_entry) swhead = SLIST_HEAD_INITIALIZER(swhead);
SLIST_HEAD(zwlisthead, zipwork_entry) zwhead = SLIST_HEAD_INITIALIZER(zwhead);
int dbg_at_times; /* -D Show details of 'trim_at' code */
-int dbg_new_order; /* -D Try the 'neworder' of doing the work */
+/*
+ * The debug options "neworder" and "oldorder" can be used to change
+ * which order work is done in. Note that both options will disappear
+ * in the near future, and the "new" order will be the only order.
+ */
+int dbg_new_order = USE_NEWORDER;
int archtodir = 0; /* Archive old logfiles to other directory */
int createlogs; /* Create (non-GLOB) logfiles which do not */
OpenPOWER on IntegriCloud