From nobody@FreeBSD.org  Fri Sep 10 12:03:25 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E83A910656B5
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 10 Sep 2010 12:03:24 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id D85DB8FC15
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 10 Sep 2010 12:03:24 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o8AC3Of7065862
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 10 Sep 2010 12:03:24 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o8AC3OW5065861;
	Fri, 10 Sep 2010 12:03:24 GMT
	(envelope-from nobody)
Message-Id: <201009101203.o8AC3OW5065861@www.freebsd.org>
Date: Fri, 10 Sep 2010 12:03:24 GMT
From: xaker1 <admin@xaker1.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Location data file sa
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         150474
>Category:       conf
>Synopsis:       [patch] rc.d/accounting: Add ability to set location of sa data file
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-rc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 10 12:10:01 UTC 2010
>Closed-Date:    
>Last-Modified:  Fri Feb 17 07:50:08 UTC 2012
>Originator:     xaker1
>Release:        8.0
>Organization:
SKPsystem
>Environment:
all
>Description:
We require the ability to change the location of data files with the sa (system accounting)

srv0# grep accounting_file /etc/rc.d/accounting
accounting_file="/var/account/acct"

change to

: ${accounting_file:="/var/account/acct"}

then we can set the file's location in rc.conf
>How-To-Repeat:

>Fix:
srv0# grep accounting_file /etc/rc.d/accounting
accounting_file="/var/account/acct"

change to

: ${accounting_file:="/var/account/acct"}

then we can set the file's location in rc.conf

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-standards->freebsd-rc 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Mon Sep 20 20:10:19 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). This patch looks trivial, hopefully this is 
one that can be easily committed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150474 

From: Doug Barton <dougb@FreeBSD.org>
To: bug-followup@FreeBSD.org, admin@xaker1.ru
Cc:  
Subject: Re: conf/150474: [patch] rc.d/accounting: Add ability to set location
 of sa data file
Date: Thu, 16 Feb 2012 23:49:03 -0800

 If anyone tackles this make sure that equivalent changes are made in
 /etc/periodic/daily/310.accounting
>Unformatted:
