rc.local, and how to use it / set it up

Ben Smithurst ben at scientia.demon.co.uk
Tue Jul 25 23:37:59 BST 2000


GeorgE Russell wrote:

> How would I start the ppp and wwwoffled daemons at bootup?
> 
> I assume this has to do with modifying thr rc.local file, as in Linux
> ;-) or not.

Correct.

> man rc didn't help me, I don't have rc.local and do not understand how
> to add one.

Just add one. 'vi /etc/rc.local' will create it.

> I note a wwwoffled.sh script in /usr/local/etc/rc.d , and would like to
> run this rtather than wwwoffled directly - the script simply checks
> wwwoffled is indeed installed.

Ah... if it's in /usr/local/etc/rc.d it will run automatically at boot
time.  To start PPP automatically, set the appropriate knobs in
/etc/rc.conf:

ppp_enable="YES"
ppp_nat="YES"
ppp_profile="demon"
ppp_mode="auto"

-- 
Ben Smithurst / ben at scientia.demon.co.uk / PGP: 0x99392F7D




More information about the Ukfreebsd mailing list