]> git.pld-linux.org Git - packages/rc-scripts.git/blame - rc-scripts-acct.patch
- fixed my sed->awk modifications (now tested and work)
[packages/rc-scripts.git] / rc-scripts-acct.patch
CommitLineData
5b827075
JB
1--- rc-scripts-0.4.0.2/rc.d/rc.shutdown.orig 2003-10-12 15:24:49.000000000 +0200
2+++ rc-scripts-0.4.0.2/rc.d/rc.shutdown 2003-10-12 15:26:49.901497848 +0200
131b21f1
JB
3@@ -29,8 +29,9 @@
4 halt -w
5
6 # Turn off swap, then unmount file systems.
7-run_cmd "Turning off swap and accounting" swapoff -a
8-[ -x /sbin/accton ] && LC_ALL=C /sbin/accton 2>&1 | grep -v "not implemented"
9+run_cmd "Turning off swap" swapoff -a
10+
11+[ -x /etc/rc.d/rc.acct ] && /etc/rc.d/rc.acct stop
12
13 if [ -x /sbin/quotaoff ]; then
14 run_cmd "Turning off quotas for local filesystems" /sbin/quotaoff -a
5b827075
JB
15--- rc-scripts-0.4.0.2/rc.d/rc.sysinit.orig 2003-10-02 20:46:49.000000000 +0200
16+++ rc-scripts-0.4.0.2/rc.d/rc.sysinit 2003-10-12 15:27:42.869445496 +0200
17@@ -610,8 +610,8 @@
131b21f1
JB
18 fi
19
20 # Turn on process accounting
21-if [ -x /sbin/accton ] ; then
22- run_cmd "Turning on process accounting" /sbin/accton /var/log/pacct
5b827075 23+if [ -x /etc/rc.d/rc.acct ]; then
e8e708c6 24+ /etc/rc.d/rc.acct start
131b21f1
JB
25 fi
26
27 # Set the clock if timezone definition wasn't available (eg. /usr not mounted)
5b827075
JB
28--- rc-scripts-0.4.0.2/po/rc-scripts.pot.orig 2003-10-02 20:47:28.000000000 +0200
29+++ rc-scripts-0.4.0.2/po/rc-scripts.pot 2003-10-12 15:28:18.477032320 +0200
30@@ -24,7 +24,7 @@
31
32 #: ../rc.d/.svn/text-base/rc.shutdown.svn-base:31
33 #: ../rc.d/rc.shutdown:31
34-msgid "Turning off swap and accounting"
35+msgid "Turning off swap"
36 msgstr ""
37
38 #: ../sysconfig/network-scripts/.svn/text-base/ifup-aliases.svn-base:14
39@@ -447,12 +447,6 @@
40 msgid "(RAID Repair)# "
41 msgstr ""
42
43-#: ../rc.d/.svn/text-base/rc.sysinit.svn-base:613
44-#: ../rc.d/rc.sysinit~:614
45-#: ../rc.d/rc.sysinit:613
46-msgid "Turning on process accounting"
47-msgstr ""
48-
49 #: ../rc.d/.svn/text-base/rc.sysinit.svn-base:76
50 #: ../rc.d/rc.sysinit~:76
51 #: ../rc.d/rc.sysinit:76
52--- rc-scripts-0.4.0.2/po/pl.po.orig 2003-10-02 20:46:49.000000000 +0200
53+++ rc-scripts-0.4.0.2/po/pl.po 2003-10-12 15:28:38.561978944 +0200
54@@ -58,8 +58,8 @@
55