From owner-freebsd-questions@FreeBSD.ORG Sat Aug 9 20:35:13 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51D501065674 for ; Sat, 9 Aug 2008 20:35:13 +0000 (UTC) (envelope-from noc@hdk5.net) Received: from guam10.hdk5.net (guam10.hdk5.net [66.180.132.235]) by mx1.freebsd.org (Postfix) with ESMTP id 21CBF8FC08 for ; Sat, 9 Aug 2008 20:35:12 +0000 (UTC) (envelope-from noc@hdk5.net) Received: from mohawk7.intra.net (unknown [66.180.149.18]) by guam10.hdk5.net (Postfix) with ESMTP id B08145C26; Sat, 9 Aug 2008 10:41:05 -1000 (HST) Message-ID: <489DFF7F.6040902@hdk5.net> Date: Sat, 09 Aug 2008 10:35:11 -1000 From: Al Plant User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071128 FreeBSD/i386 SeaMonkey/1.1.7 MIME-Version: 1.0 To: Michael Grant References: <62b856460808091322m38558ec2o1359fff91ae68a79@mail.gmail.com> In-Reply-To: <62b856460808091322m38558ec2o1359fff91ae68a79@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: shutdown/reboot suggestion X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2008 20:35:13 -0000 Michael Grant wrote: > More than once, through carelessness, and I'm sure I'm not alone, I > have inadvertently shutdown or rebooted the wrong machine. I'm sure > some of you know that all too familiar feeling when you see > "Connection closed" instead of your desktop being rebooted. > > I have a suggestion with respect to these commands. What if they > could be modified to require the hostname of the machine as their > first argument, otherwise, they refuse to bring the machine down? > > shutdown -h now > > becomes: > > shutdown example.com -h now > > and > > reboot > > becomes > > reboot example.com > > How hard would it to get the other *nix distributions to take up this up too? > > Michael Grant > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Aloha, I have set all my servers in the noc to shutdown -r now. This prevents me from locking my self out of servers as they are not in my office. I also set the tcsh command line to show path to the directory and the name of the host box i'm working on so I cant get confused. Maybe this will help. ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 6.* - 7.* - 8.* + < email: noc@hdk5.net > "All that's really worth doing is what we do for others."- Lewis Carrol