Server Administration

A shutdown script must stop an application and then copy its final data files to an archive. What should the script do before copying?

Show the answer

Correct answerB. Confirm that the application has stopped

AWhy not this: A future restart does not confirm that the application has finished writing its current data.

BWhy this is right: Waiting for the application to stop prevents it from changing files during the archive copy.

CWhy not this: Removing an account does not establish that the application has stopped or finished writing data.

DWhy not this: Disconnecting the archive connection could prevent the shutdown script from completing its copy.

The shutdown script should verify that the application has stopped before copying files it might still modify. Scheduling a restart affects the next boot but does not make the current files ready to archive.