From c96b8c07a415e367c09ed62b6690acaceefb47ff Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 2 May 2012 14:25:39 +0000 Subject: - Don't log messages saying that accounting is being disabled and enabled if the accounting log file is atomically replaced with a new file (such as during log rotation). - Simplify accounting log rotation a bit. There is no need to re-run accton(8) after renaming the new log file to it's real name. PR: kern/167321 Tested by: Jeremy Chadwick --- etc/rc.d/accounting | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'etc') diff --git a/etc/rc.d/accounting b/etc/rc.d/accounting index 85483fe..0c7ac36c 100755 --- a/etc/rc.d/accounting +++ b/etc/rc.d/accounting @@ -65,9 +65,7 @@ accounting_rotate_log() mv ${accounting_file} ${accounting_file}.0 if checkyesno accounting_enable; then - ln $_file ${accounting_file##*/} - ${accounting_command} ${accounting_file} - unlink $_file + mv $_file ${accounting_file} fi } -- cgit v1.1