process accounting needs to create /var/log/account/pacct
Bug #81611 reported by
Achim Oppelt
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.
+++ /etc/init.d/acct 2007-01-26 11:05:53.000000000 +0100
@@ -26,6 +26,7 @@
set +e
+ touch "$ACCT_LOGFILE"
Changed in acct: | |
status: | Unknown → Fix Released |
Changed in acct: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
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)