Specify machine name on reboot/halt/shutdown
Bug #117215 reported by
Dave Gilbert
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
Hi,
After having rebooted the wrong box in my time and having seen other people done it as well I thought it
was about time that reboot, halt, and shutdown had a little protection added;
the patch I include here adds an option to let you specify the hostname of the machine you believe you are shutting down;
e.g.
# halt -m davros
halt: The hostname you gave 'davros', does not match the system hostname: 'gallifrey'
I also add the (more controversial) requirement that you specify the -m/--host if you are calling the command from a terminal
but I let you override this with --nohostcheck ; this needs adding to the /etc/init.d/halt script
Thoughts?
Dave
Changed in upstart: | |
importance: | Undecided → Wishlist |
status: | Unconfirmed → Confirmed |
To post a comment you must log in.
also --nohostcheck needs adding to checkroot.sh, reboot and umountnfs.sh