summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2010-04-28 19:09:13 +0000
committerJeroen Roovers <jer@gentoo.org>2010-04-28 19:09:13 +0000
commit42f2158444e8f6f26d638e280ac812bac60e83a9 (patch)
treec2f3804c2c7727668d8a0475698fa0db07af3ad9 /sys-process/acct/files
parentRevision bump. (diff)
downloadgentoo-2-42f2158444e8f6f26d638e280ac812bac60e83a9.tar.gz
gentoo-2-42f2158444e8f6f26d638e280ac812bac60e83a9.tar.bz2
gentoo-2-42f2158444e8f6f26d638e280ac812bac60e83a9.zip
Stop accounting properly thanks to Eugeny Shkrigunov (bug #316517).
(Portage version: 2.2_rc67/cvs/Linux i686)
Diffstat (limited to 'sys-process/acct/files')
-rw-r--r--sys-process/acct/files/acct.rc64
-rw-r--r--sys-process/acct/files/acct.rc6-6.3.5-r339
2 files changed, 2 insertions, 41 deletions
diff --git a/sys-process/acct/files/acct.rc6 b/sys-process/acct/files/acct.rc6
index 7e0e0543a7b7..b90ba3c7ea06 100644
--- a/sys-process/acct/files/acct.rc6
+++ b/sys-process/acct/files/acct.rc6
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/acct/files/acct.rc6,v 1.4 2009/10/10 16:18:23 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-process/acct/files/acct.rc6,v 1.5 2010/04/28 19:09:13 jer Exp $
opts="report"
@@ -28,7 +28,7 @@ start() {
stop() {
ebegin "Stopping accounting"
- accton
+ accton off
eend $?
}
diff --git a/sys-process/acct/files/acct.rc6-6.3.5-r3 b/sys-process/acct/files/acct.rc6-6.3.5-r3
deleted file mode 100644
index 3d9da2ec03d4..000000000000
--- a/sys-process/acct/files/acct.rc6-6.3.5-r3
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/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: