--- boa.orig 2003-11-22 18:06:51.000000000 -0500 +++ boa 2003-11-22 18:12:51.000000000 -0500 @@ -3,6 +3,9 @@ # Distributed under the terms of the GNU General Public License, v2 or later # $Header: /home/cvsroot/gentoo-x86/net-www/boa/files/boa.rc6,v 1.3 2003/02/14 23:10:07 vapier Exp $ +# NB: Standard config is in /etc/boa/boa.conf +# NB: Arguments to pass to boa are in /etc/conf.d/boa + depend() { need net } @@ -13,12 +16,23 @@ eerror "There is a sample file in /usr/share/docs/boa" return 1 fi + + # If user specifies a '-c ' in /etc/conf.d/boa, boa + # requires there be a boa.conf in that directory. + if [ -e /etc/conf.d/boa ] ; then + SR=`echo ${BOA_OPTS} | awk '{ FS = " " } { print $2}'` + if [ ! -e ${SR}/boa.conf ]; then + eerror "You need an ${SR}/boa.conf to run Boa" + eerror "There is a sample file in /usr/share/docs/boa" + return 1 + fi + fi } start() { checkconfig || return 1 ebegin "Starting Boa" - start-stop-daemon --quiet --start --exec /usr/sbin/boa + start-stop-daemon --quiet --start --exec /usr/sbin/boa -- ${BOA_OPTS} eend $? }