System Administration Guide

How to Temporarily Stop System Accounting

  1. Become superuser.

  2. Modify the adm crontab file to stop the ckpacct, runacct, and monacct programs from running by commenting out the appropriate lines.


    # EDITOR=vi; export EDITOR
    # crontab -e adm
    #0 * * * * /usr/lib/acct/ckpacct
    #30 2 * * * /usr/lib/acct/runacct 2> /var/adm/acct/nite/fd2log
    #30 7 1 * * /usr/lib/acct/monacct
  3. Modify the crontab file for user root in order to stop the dodisk program from running by commenting out the appropriate line.


    # crontab -e 
    #30 22 * * 4 /usr/lib/acct/dodisk
  4. Stop accounting.


    # /etc/init.d/acct stop
    

To re-enable system accounting, remove the newly added comment symbols from the crontab files and restart accounting.


# /etc/init.d/acct start