Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default route 1

Status
Not open for further replies.

ianicr

IS-IT--Management
Nov 4, 2003
230
GB
Hi. How do I set a default route at boot time?

Thanks
 
Hi,

Edit /etc/rc.conf and put line below:

defaultrouter="default_router_ip"


dbase77
 
thanks! I installed Apache from the ports so its all installed in /usr/local/. Do I just have to put apache2enable="YES" in /etc/rc.conf to make it start up or is there something different because its in /usr/local/?
 
Hi,

If you installed from port, go to /usr/local/etc/rc.d. There is a file called apache.sh. View the file and you should see what you need to setup under rc.conf file.

apache_enable="YES"
apache_flags="-DSSL"
apache_pidfile="/var/run/httpd.pid"

This is example where I run apache with modssl.

dbase77
 
Excellent! thanks! Is this the way most of the ports run? As in they have instructions in /usr/local/etc/rc.d/whatever.sh? I'm still pretty new to fBSD...
 
Hi,

Most of the port apps that I used tend to use rc.conf file to auto start during boot up. Some of them you dont have to do anything. Usually port startup script will install script under /usr/local/etc/rc.d . Do check the script in case you miss anything.

dbase77
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top