Specify machine name on reboot/halt/shutdown

Michael Biebl mbiebl at gmail.com
Sun May 27 22:43:14 BST 2007


2007/5/27, Dr. David Alan Gilbert <ubuntu at treblig.org>:
> 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 and a few others in the same directory.
>
> The patch is attached to the following bug in launchpad:
> https://bugs.launchpad.net/upstart/+bug/117215
>
> Thoughts?

Do you know
http://packages.debian.org/unstable/admin/molly-guard ?

Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



More information about the upstart-devel mailing list