Doug Barton
0a6cd3ac6d
Update how accounting log files are rotated.
...
The old version had a race between the time that the old file was
cp'ed to acct.0 and the time that 'sa -s' was run that prevented
the commands that occurred in the meantime from being backed up.
It's also arguable that the old version was inefficient in using
cp which can be a problem on a space-constrained system.
This version avoids both problems, albeit it's considerably more
complicated. The advantage of putting the log rotation in the rc.d
script is that it can handle the _enable and _file questions without
having to do gymnastics to discover either value in the periodic script.
As a side effect of reviewing the rc.d script I cleaned it up a bit.
2011-02-22 21:13:40 +00:00
..
2008-07-16 19:22:48 +00:00
2011-02-22 21:13:40 +00:00
2009-09-12 22:13:41 +00:00
2008-07-16 19:22:48 +00:00
2009-06-01 04:55:13 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:50:29 +00:00
2009-05-30 21:51:38 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2009-10-10 22:17:03 +00:00
2010-05-14 04:53:57 +00:00
2007-12-08 07:20:23 +00:00
2010-05-14 04:53:57 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:50:29 +00:00
2007-12-08 07:20:23 +00:00
2010-05-14 04:53:57 +00:00
2010-09-05 05:44:40 +00:00
2007-12-08 07:20:23 +00:00
2007-12-08 07:20:23 +00:00
2010-05-19 19:03:19 +00:00
2010-09-29 13:08:23 +00:00
2010-12-27 22:52:47 +00:00
2010-01-23 11:42:31 +00:00
2008-04-15 23:03:35 +00:00
2007-12-08 22:40:31 +00:00
2010-05-19 19:03:19 +00:00
2008-07-16 19:22:48 +00:00
2009-10-17 21:09:15 +00:00
2008-07-16 19:22:48 +00:00
2009-10-10 22:17:03 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:22:48 +00:00
2010-05-14 04:53:57 +00:00
2010-05-14 04:53:57 +00:00
2010-11-24 15:25:17 +00:00
2008-11-03 10:38:00 +00:00
2010-02-19 09:18:26 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:22:48 +00:00
2010-05-19 19:03:19 +00:00
2010-05-19 19:03:19 +00:00
2009-10-10 22:17:03 +00:00
2007-12-08 07:20:23 +00:00
2010-05-19 19:03:19 +00:00
2010-09-13 19:55:40 +00:00
2009-06-01 05:35:03 +00:00
2009-06-01 05:35:03 +00:00
2010-05-14 04:53:57 +00:00
2010-08-01 15:41:00 +00:00
2009-06-01 05:35:03 +00:00
2009-08-23 05:56:54 +00:00
2008-07-16 19:22:48 +00:00
2010-03-07 04:26:21 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2009-06-01 04:55:13 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2011-01-06 21:09:22 +00:00
2008-06-22 16:23:39 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:50:29 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:50:29 +00:00
2010-09-24 19:53:55 +00:00
2010-05-19 19:03:19 +00:00
2010-05-14 04:53:57 +00:00
2008-07-16 19:22:48 +00:00
2009-10-10 22:17:03 +00:00
2010-11-25 18:20:28 +00:00
2008-06-22 15:40:19 +00:00
2009-06-02 22:15:47 +00:00
2008-07-16 19:22:48 +00:00
2009-10-10 22:17:03 +00:00
2009-09-12 22:13:41 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:22:48 +00:00
2010-04-28 22:29:17 +00:00
2008-07-16 19:22:48 +00:00
2010-09-13 19:55:40 +00:00
2010-09-13 19:52:46 +00:00
2009-09-12 22:13:41 +00:00
2009-10-10 22:17:03 +00:00
2009-06-02 22:15:47 +00:00
2009-10-10 22:17:03 +00:00
2009-06-02 22:15:47 +00:00
2008-07-16 19:22:48 +00:00
2009-06-02 22:15:47 +00:00
2009-06-01 04:55:13 +00:00
2010-05-14 04:53:57 +00:00
2010-09-27 15:55:39 +00:00
2009-05-30 21:51:38 +00:00
2010-01-30 16:34:52 +00:00
2008-07-16 19:22:48 +00:00
2010-12-17 09:38:55 +00:00
2009-06-26 01:04:50 +00:00
2009-06-26 01:04:50 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:50:29 +00:00
2009-09-14 16:52:38 +00:00
2008-07-16 19:22:48 +00:00
2007-12-08 07:20:23 +00:00
2009-06-01 04:55:13 +00:00
2008-07-16 19:22:48 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:22:48 +00:00
2010-05-14 04:53:57 +00:00
2008-03-11 17:21:14 +00:00
2009-09-12 22:19:48 +00:00
2009-09-12 22:19:48 +00:00
2010-04-26 15:31:58 +00:00
2011-01-31 21:03:08 +00:00
2009-09-26 19:00:47 +00:00
2010-02-27 19:02:21 +00:00
2008-07-16 19:50:29 +00:00
2010-05-19 19:03:19 +00:00
2008-07-16 19:50:29 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:50:29 +00:00
2008-07-19 20:12:02 +00:00
2010-05-19 19:03:19 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:50:29 +00:00
2010-01-11 23:32:36 +00:00
2010-05-14 04:53:57 +00:00
2009-03-11 12:55:12 +00:00
2010-05-14 04:53:57 +00:00
2010-05-19 19:03:19 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:50:29 +00:00
2010-03-13 12:02:44 +00:00
2010-05-14 04:53:57 +00:00
2008-07-16 19:50:29 +00:00
2010-01-13 19:07:48 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:50:29 +00:00
2009-08-23 05:47:19 +00:00
2008-07-16 19:50:29 +00:00
2009-06-01 04:55:13 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:50:29 +00:00
2009-07-29 05:23:52 +00:00
2010-05-19 19:03:19 +00:00