System Administration Guide: Advanced Administration

What Happens if the System Shuts Down

If the system is shut down using the shutdown command, the shutacct script is executed automatically. The shutacct script writes a reason record into the /var/adm/wtmpx file and turns off process accounting.