BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 5th, 2002, 09:30 AM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 45 m 36 sec
Reputation Power: 14
Rereading /etc/rc.conf without reboot

Is this possible? Just curious.

Thanks in advance.

Reply With Quote
  #2  
Old January 5th, 2002, 03:21 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Technically it's possible but why do you need to do it? All those /etc/rc.* files are to be read on bootup/shutdown globally. If you have particular daemon/service you need to start without reboot, why can't you alter your /etc/rc.conf so it will start automatically on next reboot, then start it manually? Any service/daemon in /etc/rc.conf can be started manually anyway.

Like mounting a NFS share, you can alter /etc/fstab + reboot. You also can mount/umount it manually.

Reply With Quote
  #3  
Old January 5th, 2002, 05:32 PM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 45 m 36 sec
Reputation Power: 14
Sure. It was this line in particular:
Code:
gateway_enable="YES"


Would this need a reboot for the config to be initialized. Sorry should have posted that in the first place.

As it is that's the least of my worries - configuring ppp / default routes is being a pain at the moment and the only official PPP guide I've read so far - http://www.freebsd.org/doc/en_US.IS...ork.html#AEN825 - is incomplete (at that fragment, the exact point I'm having trouble with;\)

Not to worry, I've to go through the ppp man page again tomorrow and read up more on default routes I think, that seems to be the problem (a link is established correctly to the ISP server, but no route is available from my box to anything outside the ISP server at present).

Reply With Quote
  #4  
Old January 5th, 2002, 05:46 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> gateway_enable="YES
>> Would this need a reboot for the config to be initialized

No. In /etc/rc.network:
Code:
	case ${gateway_enable} in
	[Yy][Ee][Ss])
		echo -n ' IP gateway=YES'
		sysctl -w net.inet.ip.forwarding=1 >/dev/null
		;;
	esac


So you can just run the sysctl command. rc.conf is just a centralized config file for rc* scripts to read on bootup/shutdown to help administrators to automate all the tasks.

>> but no route is available from my box

Sorry I can't help you with PPP since I'd never make a decision to join an ISP that supports PPP. So are you saying if you add the default gateway manually the problem would be solved? Well, I am sure there must an appropriate way to do this. Yet, you also can write a simple script to add a default gateway and exec it when your NIC is up.

Reply With Quote
  #5  
Old January 5th, 2002, 06:23 PM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 45 m 36 sec
Reputation Power: 14
Thanks for the rc.network pointer.

>>Sorry I can't help you with PPP since I'd never make a decision
>> to join an ISP that supports PPP.
Unfortunately here in the UK PPP via a 56k modem is the only option I currently have - ADSL is being rolled out here soon though and at that point I will upgrade.

>>So are you saying if you add the default gateway manually
>> the problem would be solved?
I can't say with certainty at this point. I'll know more tomorrow after reading up a bit more.

Thanks for your time.

Reply With Quote
  #6  
Old January 6th, 2002, 04:49 PM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 45 m 36 sec
Reputation Power: 14
I post this message from my windows machine, connecting to the internet via the freebsd PPP connection! As such, the PPP problem has been resolved (it was a problem with routing).

Out of interest how would one manually make changes to the routing table in FreeBSD? Can it be done by ifconfig (for example to specify a default route)?

I've started writing the missing sections from the PPP Pedantic Primer for the FreeBSD Doc Project as well, so hopefully others don't get the shock I did when I discovered sections were missing from it!

Reply With Quote
  #7  
Old January 6th, 2002, 05:03 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> Can it be done by ifconfig

Use route instead.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Rereading /etc/rc.conf without reboot

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap