When a power interruption is planed, it is easy to set-up a programmed shutdown of the machines, using a scheduled shutdown.
The machines should be stopped in the following order that will conform with the interdependancies between the services:
There should be approximately 10 minutes between each steps, so if the first phase should stop on Sunday at 7:00, the second phase will be on Sunday at 7:10, etc. and the last phase on Sunday at 7:40.
Add a crontab entry line in root user on each machine, this will allow to schedule the shutdown a long time in advance.
The date and time for crontab are as follow:
minute hour day-of-the-month month day-of-the-week
where the minutes are between 0—59, the hour 0—23 and Sunday is
represented by either 0 or 7.
After the system has bee restarted, you must remove or comment out the line in the crontab (except on ESXi servers and firewall); else the system will shutdown on the next Sunday.
Amanda starts a backup run every night at 00:05, it is better to halt the machine around 23:50, before a run, than just when a new run has started for example at 00:15.
Do not use the -p option with the door machine because it restarts automatically as soon as it is powered down, it is better to keep the system halted but still with power on.