Date: Mon, 31 Mar 1997 02:17:58 -0800 (PST) From: Doug White <dwhite@gdi.uoregon.edu> To: sweeting@tm.net.my Cc: freebsd-questions@FreeBSD.ORG Subject: Re: [Q] proper way to configure startup scripts for tcp/ip ? Message-ID: <Pine.BSI.3.94.970331021656.397o-100000@localhost> In-Reply-To: <v01540b05af636c34cfa1@[202.184.153.110]>
next in thread | previous in thread | raw e-mail | index | archive | help
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_<xxx> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.970331021656.397o-100000>