I don't think the os has time to do that, unless you get a battery backup. In which case (for apc anyhow), you can configure it to log, mail you a message, and probably execute a script to do whatever you want when the system detects a power failure.
|