How to execute /etc/rc.conf

You don't. Normally you would simply use service(8) command to stop/start/restart a specific service.

One way to kind of, sort of, restart, is to drop to single user mode and exit that.
 
you don't
its supposed to only have variable assignments anyway which are used by various startup scripts
you can of course sh /etc/rc.conf but won't accomplish anything
 
Maybe you could make a script and scrape service -e and do a 'service scraped restart' script.

'service kldxref' sounds tricky. I doubt you can do this. devmatch is run by devd so....

I would trust your Zen masters. You can restart some services but all is probably not going to work.
 
How to execute /etc/rc.conf after boot
You can "execute" it with sh /etc/rc.conf but it won't do anything useful for you! Essentially it contains variables which are needed/used by/enable various scripts in /etc/rc.d/ directory. Pick any script in /etc/rc.d/ and try to understand its logic to gain a better understanding.
 
Back
Top