Specify machine name on reboot/halt/shutdown

Bug #117215 reported by Dave Gilbert
2
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

Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :
Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

also --nohostcheck needs adding to checkroot.sh, reboot and umountnfs.sh

Changed in upstart:
importance: Undecided → Wishlist
status: Unconfirmed → Confirmed
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Patch is rejected because it is applied to compatibility utilities, which are intended to behave like the original versions.

Bug not rejected because the idea is still valid and could be used in non-compat (or extended-compat) versions.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Will not be added.

Changed in upstart:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.