Date: Thu, 17 May 2007 16:03:22 -0400 From: "Mike Barborak" <mab2001@gmail.com> To: "Robert Huff" <roberthuff@rcn.com> Cc: freebsd-questions@freebsd.org Subject: Re: hostname setting in rc.conf ignored? Message-ID: <b6c5c4be0705171303h71b957c8h68d52fb10e84e17d@mail.gmail.com> In-Reply-To: <17996.44201.819034.807930@jerusalem.litteratus.org> References: <b6c5c4be0705171112y207ffee1v5d247ab011e1c238@mail.gmail.com> <200705171856.l4HIu0a8073517@casselton.net> <b6c5c4be0705171223u781453f5wf8b8f99efa4f9651@mail.gmail.com> <17996.44201.819034.807930@jerusalem.litteratus.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <roberthuff@rcn.com> 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b6c5c4be0705171303h71b957c8h68d52fb10e84e17d>