How can I reload /etc/rc.conf without reboot?
shutdown now
and then return
from the console. This doesn't drop all the network connections so it's not quite the same as rebooting would be but it would re-read /etc/rc.conf as it restarts all the services going back into multi user mode.Why would you want to do that? If you wish to (re)start services you can either use service(8) or call the scripts in (/usr/local)/etc/rc.d manually. In most other cases there are still commands you can use. There's generally no need to "re-read" /etc/rc.conf. What's more, there's probably no such thing in the first place because that file is only read during startup, when switching between single user mode and multi-user mode and when manually turning services on or off.m_pahlevanzadeh said:How can I reload /etc/rc.conf without reboot?
init q
for Linux users. pf_enable="YES"
,So bsd itself parse it.pf_enable="YES"
# service pf start
or # /etc/rc.d/pf start
. Re-reading /etc/rc.conf just doesn't make any sense.Well, then we're basically talking about services, and you can control those either by using their rc command scripts directly (for example /etc/rc.d/pf) or using the service(8) command.m_pahlevanzadeh said:It's interseting, because i think bsd itself undestand new line of /etc/rc.conf, Suppose i have a bsd under load, and i addedpf_enable="YES"
,So bsd itself parse it.
It's one post above yours:I would like to have a command to "reload" rc.conf or a method to tell to FreeBSD to disable the vboxnet driver.
DoesWell, then we're basically talking about services, and you can control those either by using their rc command scripts directly (for example /etc/rc.d/pf) or using the service(8) command.
/etc/rc.d/vboxnet stop
or service vboxnet stop
work?