3 # $NetBSD: accounting,v 1.8 2004/08/13 18:08:03 mycroft Exp $
11 $_rc_subr_loaded .
/etc
/rc.subr
15 accounting_command
="/usr/sbin/accton"
16 accounting_file
="/var/account/acct"
17 start_cmd
="accounting_start"
18 stop_cmd
="accounting_stop"
22 if [ ! -f ${accounting_file} ]; then
23 echo "Creating accounting file ${accounting_file}"
24 ( umask 022 ; > ${accounting_file} )
26 echo "Turning on accounting."
27 ${accounting_command} ${accounting_file}
32 echo "Turning off accounting."