On Wednesday, March 5, 2003, at 07:56 AM, mathias meyer wrote:

Thank you very much. A suggestion: the log file should be named 'acct' rather than 'pacct'.

i had a look in the configure script how other systems handle this. linux and freebsd name it pacct, netbsd names it acct. i don't no if there's a darwin policy. is so, please let me know. but of course i will change it to acct if you ask me to.

The Darwin script /etc/periodic/daily/100.clean-logs assumes that the file is at /var/account/acct. Also, if I recall, this is what the kernel expects. When I created the file, data started flowing into it immediately, without an invocation of accton. Darwin ac, last, and lastcomm might not work with pacct.


Otherwise the periodic script 100.clean-logs will have to be changed. Also, I think then the 'accton' command is not even needed.

that's a fair enough reason to call it acct :-). the accton command is included in the package so provided by default. as long as it doesn't cause any crashes i intend to leave it in the package.

I mean that there is no need to issue the command 'sudo accton ...' to start the accounting. It happens automatically. You still need accton to stop it, of course.


one question remains: is there a way to limit the size of acct? otherwise it can grow really big.

That's what the periodic script does -- it rotates the file every day. It also invokes sa to create savacct and usracct, which is why I was surprised that there is no sa in Darwin. If you want to call the file 'pacct', you'll have to patch this script (bad) or replace it with an anacron job (unnecessary dependency.)




-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to