Is /etc/rc.conf scriptable?

Alexander Leidinger Alexander at
Tue Feb 1 14:16:30 UTC 2011

Quoting Yue Wu <vanopen at> (from Tue, 1 Feb 2011 20:35:06 +0800):

> 2. check if bitlbee has been installed, if so, then let bitlbee
> service start.
> So I tried with following settings in rc.conf, but all of them failed,
> i.e., the networking can't be connected and bitlbee service doesn't
> run.
> /etc/rc.conf

> if [ -x /usr/local/sbin/bitlbee ]; then
>     bitlbee_enable="YES"
> fi

If it is not installed, there will be no rc.d script for it, so  
nothing will happen. This means you just can add bitlbee_enable="YES"  
unconditionally, and no error/warning message will show up during boot.


There's no time like the present for postponing
what you don't want to do.    Alexander @ PGP ID = B0063FE7       netchild @  : PGP ID = 72077137

More information about the freebsd-stable mailing list