From 7d7fd6c1379452ee322c1dccaa386a4ca02df7aa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Sun, 12 Oct 2003 19:10:48 +0000 Subject: [PATCH] - use /etc/rc.d/rc.acct for accouting; updated accouting related parts of translations (qboosh) svn-id: @1434 --- po/de.po | 2 +- po/pl.po | 8 ++------ rc.d/rc.shutdown | 5 +++-- rc.d/rc.sysinit | 4 ++-- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/po/de.po b/po/de.po index a36c87ac..d1e9fc10 100644 --- a/po/de.po +++ b/po/de.po @@ -125,7 +125,7 @@ msgstr "INIT wird befehlt, in den Single-Modus zu gehen" #: ../rc.d/rc.shutdown:32 msgid "Turning off swap and accounting" -msgstr "Die Auslagerung und das Protokollieren werden ausgeschaltet" +msgstr "Die Auslagerung wird ausgeschaltet" #: ../rc.d/rc.shutdown:42 ../rc.d/rc.sysinit:190 ../rc.d/rc.sysinit:346 #: ../rc.d/rc.sysinit:375 diff --git a/po/pl.po b/po/pl.po index 12f1c8c2..73a977aa 100644 --- a/po/pl.po +++ b/po/pl.po @@ -58,8 +58,8 @@ msgid "Sending all processes the KILL signal" msgstr "Wysylanie do wszystkich procesów sygnalu KILL" #: ./rc.d/rc.shutdown:32 -msgid "Turning off swap and accounting" -msgstr "Wylaczanie swapa i zliczania" +msgid "Turning off swap" +msgstr "Wylaczanie swapa" #: ./rc.d/rc.shutdown:36 msgid "Turning off quotas for local filesystems" @@ -283,10 +283,6 @@ msgstr "Sprawdzanie quot w systemach plik msgid "Turning on quotas for local filesystems" msgstr "Wlaczanie quot na lokalnych systemach plików" -#: ./rc.d/rc.sysinit:542 -msgid "Turning on process accounting" -msgstr "Wlaczanie zliczania procesów" - #: ./rc.d/rc.sysinit:558 msgid "Setting %s seconds for kernel reboot after panic" msgstr "Restart systemu po %s sekundach od zawieszenia sie jadra" diff --git a/rc.d/rc.shutdown b/rc.d/rc.shutdown index 80490cd3..3ac5aa69 100755 --- a/rc.d/rc.shutdown +++ b/rc.d/rc.shutdown @@ -29,8 +29,9 @@ run_cmd "Sending all processes the KILL signal" killall5 -9 halt -w # Turn off swap, then unmount file systems. -run_cmd "Turning off swap and accounting" swapoff -a -[ -x /sbin/accton ] && LC_ALL=C /sbin/accton 2>&1 | grep -v "not implemented" +run_cmd "Turning off swap" swapoff -a + +[ -x /etc/rc.d/rc.acct ] && /etc/rc.d/rc.acct stop if [ -x /sbin/quotaoff ]; then run_cmd "Turning off quotas for local filesystems" /sbin/quotaoff -a diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 4b9745b3..8e176063 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -610,8 +610,8 @@ if [ -x /sbin/quotaon ]; then fi # Turn on process accounting -if [ -x /sbin/accton ] ; then - run_cmd "Turning on process accounting" /sbin/accton /var/log/pacct +if [ -x /etc/rc.d/rc.acct ]; then + /etc.rc.d/rc.acct start fi # Set the clock if timezone definition wasn't available (eg. /usr not mounted) -- 2.44.0