[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1497: acct-alpha-5-7 problems



Dirk Eddelbuettel writes ("Bug#1497: acct-alpha-5-7 problems"):
>   Marek> - trying to start accounting again when it is already running gives
>   Marek> a message "Process accounting not available on this system", which
>   Marek> is a bit confusing (I suggest not to redirect stderr from accton to
>   Marek> /dev/null, so that one can see what is really the problem).
>
> Please see acct(2). There is not a lot we can do about it as the acct()
> functions returns either 0 or -1. You get -1 for missing accounting support in
> the kernel, but also when accounting is already turned on. All I could do is
> to change the wording of the message to
>     Process accounting not available or already running.
> but this could irritate new users considerably.

How about using the value of errno ?  acct(1) already seems to be able
to do this, but you get the standard strerror value for ENOSYS,
"function not implemented", rather than "this kernel doesn't have
accounting support compiled into it".

> I could package acct-1.2.0 instead of acct-alpha and continue to package
> `last' as a single package for the base section. I already wrote a man page
> for `last'.

Once again, can't we use the last from sysvinit ?

Ian.


Reply to: