What Happens If the System Shuts Down

If the system is shut down by 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.