I basically want to pause rc.conf and check the state of various settings.lgrant is not wrong. /etc/rc.conf is sourced by other files and the variables are used to define behavior of the other things. Other things in this case being system service scripts (/etc/rc.d, /usr/local/etc/rc.d). /etc/rc.d/netif does stuff with network interfaces. Where does it get that information? From variables in /etc/rc.conf.
Perhaps a bit more information as to what you are trying to do/looking for will make it easier for others to help.
If you want ordering for how things get started,
man rcorder
service netif restart, would would like to see what being done in case the outcome was something I didn't want.I believe it's should be doable by inspecting /var/log/messages andI basically want to pause rc.conf and check the state of various settings
dmesg command, if something wrong happened it should likely be reported in logs.I keep forgetting about "-x";It's not stepping, but the -x option for sh is useful here. Examples:
Code:(set -x ; . /etc/rc.conf) # will print individual lines
You set also put `set -x` at the beginning of a /etc/rc.d file, so that it prints both during bootup and when invoked later.
Not heard of this one. Must try it.Sometimes I like to useset -vtoo.
I basically want to pause rc.conf and check the state of various settings.
If for instance I did aservice netif restart, would would like to see what being done in case the outcome was something I didn't want.
See https://forums.freebsd.org/threads/single-stepping-through-a-shell-script.90321/Is there any way to single step through rc.conf or put in something like 'press any key to continue'?