From owner-freebsd-questions Mon Mar 31 02:18:23 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA04423 for questions-outgoing; Mon, 31 Mar 1997 02:18:23 -0800 (PST) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA04418 for ; Mon, 31 Mar 1997 02:18:18 -0800 (PST) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.5/8.6.12) with SMTP id CAA00792; Mon, 31 Mar 1997 02:17:58 -0800 (PST) Date: Mon, 31 Mar 1997 02:17:58 -0800 (PST) From: Doug White X-Sender: dwhite@localhost Reply-To: Doug White To: sweeting@tm.net.my cc: freebsd-questions@FreeBSD.ORG Subject: Re: [Q] proper way to configure startup scripts for tcp/ip ? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 30 Mar 1997 sweeting@tm.net.my wrote: > Now, this works OK but I was trying to get virtual domains to work and > found that if i uncomment the ifonfig aliases in /etc/sysconfig above, > nothing works at all... (yet I saw a reference to doing ifconfig aliasing > in /etc/sysconfig in an earlier post) > > So, I have created a simple script to do the aliasing : > > ifconfig ep0 202.184.153.5 netmask 255.255.255.255 alias > ifconfig ep0 202.184.153.30 netmask 255.255.255.255 alias > ifconfig ep0 202.184.153.31 netmask 255.255.255.255 alias > route add -host 202.184.153.13 127.0.0.1 > /usr/local/sbin/httpd > > This works but is it the proper way to go about this ? > How can i invoke my script automatically at start up ? > (simply append to /etc/sysconfig ?) Take a look at this note in sysconfig: # Alternatively, /etc/start_if.${network_interface} is run if it exists. # This script can be used as an alternative to the ifconfig_ lines. Stick the original ifconfig and your above lines into /etc/startif.ep0 and you should be good. > Should I incorporate that route command into the sysconfig file ? > eg. static_routes="202.184.153.13 127.0.0.1" If you want. > And since just to clean things up, freebsd calls httpd on bootup > and fails (since the ip aliases are not set) ... where can i comment > that out ? (i tried rc.local, rc*, inetd.conf) It's probably run from a rc.d script in /usr/local/etc/rc.d. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major