From owner-freebsd-questions@FreeBSD.ORG Thu May 17 20:03:24 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7071916A400 for ; Thu, 17 May 2007 20:03:24 +0000 (UTC) (envelope-from mab2001@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244]) by mx1.freebsd.org (Postfix) with ESMTP id 29A8F13C45B for ; Thu, 17 May 2007 20:03:24 +0000 (UTC) (envelope-from mab2001@gmail.com) Received: by an-out-0708.google.com with SMTP id d23so161638and for ; Thu, 17 May 2007 13:03:23 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Czl5/3aLU5mL7X1K88k/2mIbRZtd93RdfPcrJPOY20Gn0TClaAffBr1w3PmOHURM4N94HfKvOsrRANi0PpEXIhFCAc5t0CZkEMHKv+zxmdWoxAbTVMXN6X+qyftPdGWgB0fNQ+qRBfYijbGJjOYkHSCh+oNScvzo1cRnqVJA/bM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=t4+h9AXUXbD7SlbyiH+kS5oWns7GOoChqjmbiUDbBRnYpN7gk5HlrO+it8NwikUXBfho/C/+uM2E72wo19LeNBs0m3pkbQ+kIk5pIMbqv0moMZg1cTLvWkGj68+qjE7vepR/vznpMWDuMGlCVr8KL9Eypy23O3FXz1/vs+QiF5c= Received: by 10.100.46.19 with SMTP id t19mr601207ant.1179432202752; Thu, 17 May 2007 13:03:22 -0700 (PDT) Received: by 10.100.112.4 with HTTP; Thu, 17 May 2007 13:03:22 -0700 (PDT) Message-ID: Date: Thu, 17 May 2007 16:03:22 -0400 From: "Mike Barborak" To: "Robert Huff" In-Reply-To: <17996.44201.819034.807930@jerusalem.litteratus.org> MIME-Version: 1.0 References: <200705171856.l4HIu0a8073517@casselton.net> <17996.44201.819034.807930@jerusalem.litteratus.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: hostname setting in rc.conf ignored? 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: Thu, 17 May 2007 20:03:24 -0000 Thanks. For posterity then, anyone who unwisely wishes to give up the hunt and use this hack, one solution is to add this line to /etc/rc.conf: local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d /usr/local/etc/rc.after_everything.d" Then create the directory /usr/local/etc/rc.after_everything.d (same permissions as /usr/local/etc/rc.d) and put a file named hostname.sh in that directory with this content: #!/bin/sh /bin/hostname your_hostname_here Make the file executable. -Mike On 5/17/07, Robert Huff wrote: > > > Mike Barborak writes: > > > Perhaps another tack, what is the last script executed during > > boot up? If I add a line like "/bin/hostname www.mydomain.com" to > > /etc/rc.local should this force the hostname change? > > Start with "man rc.d". > > > > Robert Huff > _______________________________________________ > 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" >