Prevent EC2 machine from halt, poweroff, shutdown

Posted by Adam Matan on Server Fault See other posts from Server Fault or by Adam Matan
Published on 2010-03-16T14:18:44Z Indexed on 2010/03/16 14:26 UTC
Read the original article Hit count: 349

Filed under:
|
|
|

Hi,

EC2 Ubuntu servers erase all disk contents when being shut down. Following an unfortunate accident, I have decided to prevent the command-live halt, poweroff and shutdown.

  1. What's the best way to do it? I thought about renaming these commands (at /sbin) to something like HALT_RENAMED___ERASES_ALL_DISK_CONTENTS.

  2. Are there any files, other than the three listed above, that needs to be handled?

  3. I've noticed that halt and poweroff are merely links to reboot. Should reboot be renamed, too?

Adam

© Server Fault or respective owner

Related posts about ec2

Related posts about halt