summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2012-05-02 14:25:39 +0000
committerjhb <jhb@FreeBSD.org>2012-05-02 14:25:39 +0000
commitc96b8c07a415e367c09ed62b6690acaceefb47ff (patch)
tree3f1ae94d4af6371a0c916975d8c8cb9082aa73f6 /etc
parent0a9ea4a8c0282ebf9678de925065a8624b1cb28d (diff)
downloadFreeBSD-src-c96b8c07a415e367c09ed62b6690acaceefb47ff.zip
FreeBSD-src-c96b8c07a415e367c09ed62b6690acaceefb47ff.tar.gz
- 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
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/accounting4
1 files changed, 1 insertions, 3 deletions
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
}
OpenPOWER on IntegriCloud