r/linuxadmin • u/Expensive-Rice-2052 • Oct 16 '26
Linux Shutdown Protection: Prevent Accidental Server Shutdowns - Tip 100
54
Upvotes
r/linuxadmin • u/Expensive-Rice-2052 • Oct 16 '26
View all comments
16
u/Lammtarra95 Oct 16 '26
What is the point of asking the admin to type the hostname that is helpfully displayed in the prompt? And how would the is_production file normally be created?
Better would be a procedural solution, like second pair of eyes to check it is the correct server, and (as part of the procedure) removal from production (cluster failover, removal from load balancer, whatever) before shutdown.