:
# @(#)acct 5.3b of Jan 27, 1988
:
#	Copyright (c) 1984 AT&T
#	  All Rights Reserved

#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
#	The copyright notice above does not evidence any
#	actual or intended publication of such source code.

state=$1
set `who -r`
case $state in
'start')
	# don't start if last run state was 2 (multiuser) or 3 (multiuser with RFS)
	if [ $9 != 2 -a $9 != 3 ]
	then
		echo "Starting process accounting"
		/usr/lib/acct/startup
	fi
	;;
'stop')
	echo "Stopping process accounting"
	/usr/lib/acct/shutacct
	;;
esac
