Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Feb 2011 15:16:03 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Yue Wu <vanopen@gmail.com>
Cc:        ml-freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: Is /etc/rc.conf scriptable?
Message-ID:  <20110201151603.96603jakaxzuxrwg@webmail.leidinger.net>
In-Reply-To: <20110201123506.GA97242@fbsd.t60.cpu>
References:  <20110201123506.GA97242@fbsd.t60.cpu>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Yue Wu <vanopen@gmail.com> (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.

Bye,
Alexander.

-- 
There's no time like the present for postponing
what you don't want to do.

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110201151603.96603jakaxzuxrwg>