summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-10-06 23:35:02 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-10-06 23:35:02 +0000
commit67589230e84ebe98fee45bf3224c96c186bbdf6d (patch)
tree72369cc5a773e01381fd9656f79017f83aa04224 /sys-process/acct/files
parentLinux version 2.6.25.16 and 2.6.26.17. A null pointer dereference in thinkpad... (diff)
downloadgentoo-2-67589230e84ebe98fee45bf3224c96c186bbdf6d.tar.gz
gentoo-2-67589230e84ebe98fee45bf3224c96c186bbdf6d.tar.bz2
gentoo-2-67589230e84ebe98fee45bf3224c96c186bbdf6d.zip
Lots of other distros have moved the accton binary over to /sbin, jump in the fire as well so that bootchart can be used when /usr is on a different partition, as reported in bug #239748.
(Portage version: 2.2_rc11/cvs/Linux 2.6.27-rc1-10246-gca5de40 x86_64)
Diffstat (limited to 'sys-process/acct/files')
-rw-r--r--sys-process/acct/files/acct.rc6-6.3.5-r339
1 files changed, 39 insertions, 0 deletions
diff --git a/sys-process/acct/files/acct.rc6-6.3.5-r3 b/sys-process/acct/files/acct.rc6-6.3.5-r3
new file mode 100644
index 000000000000..3d9da2ec03d4
--- /dev/null
+++ b/sys-process/acct/files/acct.rc6-6.3.5-r3
@@ -0,0 +1,39 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/acct/files/acct.rc6-6.3.5-r3,v 1.1 2008/10/06 23:35:02 robbat2 Exp $
+
+opts="report"
+
+depend() {
+ need localmount
+}
+
+checkconfig() {
+ export ACCT_LOG=${ACCT_LOG:-/var/account/pacct}
+ if [[ ! -e ${ACCT_LOG} ]] ; then
+ touch "${ACCT_LOG}"
+ chmod 600 "${ACCT_LOG}"
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting accounting"
+ /sbin/accton "${ACCT_LOG}"
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping accounting"
+ /sbin/accton
+ eend $?
+}
+
+report() {
+ sa ${REPORT_OPTS} "${ACCT_LOG}"
+}
+
+# vim:ts=4 sw=4: