process accounting needs to create /var/log/account/pacct

Bug #81611 reported by Achim Oppelt
4
Affects Status Importance Assigned to Milestone
acct (Debian)
Fix Released
Unknown
acct (Ubuntu)
Fix Released
Medium
ville palo

Bug Description

Binary package hint: acct

Neither the acct(2) system call nor the accton(8) program provided by acct-6.3.99+6.4pre1 create the accounting file, causing no accounting information to be written.

The simplest fix is to add a touch command to /etc/init.d/acct:

--- acct-6.3.99+6.4pre1/debian/init.d 2007-01-26 11:09:25.000000000 +0100
+++ /etc/init.d/acct 2007-01-26 11:05:53.000000000 +0100
@@ -26,6 +26,7 @@
                set +e

                echo -n "Starting $DESC: "
+ touch "$ACCT_LOGFILE"
                /usr/sbin/accton "$ACCT_LOGFILE" 2>/dev/null

                rv=$?

Revision history for this message
Achim Oppelt (achim-oppelt) wrote :

Actually, the bug is probably in the postinst script, which creates /var/account/pacct instead of /var/log/account/pacct as specified in /etc/default/acct. So use the attached patch instead.

(The cron.daily script will recreate the pacct file, but only if it exists)

Revision history for this message
ville palo (vi64pa) wrote :

Did this happen on edgy?

There is similiar debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=392045
and it has been marked fixed in version Fixed in version /6.4~pre1-1 which is inluded in feisty.

Changed in acct:
assignee: nobody → vi64pa
importance: Undecided → Medium
status: Unconfirmed → Confirmed
Revision history for this message
Achim Oppelt (achim-oppelt) wrote : Re: [Bug 81611] Re: process accounting needs to create /var/log/account/pacct

The error occured on edgy. So it seems to be fixed already for feisty.

Changed in acct:
status: Unknown → Fix Released
ville palo (vi64pa)
Changed in acct:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.