The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Поиск:  Каталог документации

6. Process Accounting Setup on Linux

  1. Compile and install process accounting software.

    The process accounting software package is available from

  2. Modify your system init script and turn on process accounting at boot time.

    Here's an example:

    # Turn process accounting on. 
    if [ -x /sbin/accton ]
    		/sbin/accton /var/log/pacct 
    		echo "Process accounting turned on." 
  3. Create accounting record file "pacct."

    Your process accounting software will print out all commands executed to the file /var/log/pacct by default.

    To create the accounting record file:
    touch /var/log/pacct

    This record file should be owned by root, and it has read-write permission for root and read permission for anybody else:

    chown root /var/log/pacct
    chmod 0644 /var/log/pacct
  4. Reboot.

    Now reboot your system for changes you made to take effect.

Inferno Solutions
Hosting by

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру