Lines 3-8
Link Here
|
3 |
# Distributed under the terms of the GNU General Public License, v2 or later |
3 |
# Distributed under the terms of the GNU General Public License, v2 or later |
4 |
# $Header: /home/cvsroot/gentoo-x86/net-www/boa/files/boa.rc6,v 1.3 2003/02/14 23:10:07 vapier Exp $ |
4 |
# $Header: /home/cvsroot/gentoo-x86/net-www/boa/files/boa.rc6,v 1.3 2003/02/14 23:10:07 vapier Exp $ |
5 |
|
5 |
|
|
|
6 |
# NB: Standard config is in /etc/boa/boa.conf |
7 |
# NB: Arguments to pass to boa are in /etc/conf.d/boa |
8 |
|
6 |
depend() { |
9 |
depend() { |
7 |
need net |
10 |
need net |
8 |
} |
11 |
} |
Lines 13-24
Link Here
|
13 |
eerror "There is a sample file in /usr/share/docs/boa" |
16 |
eerror "There is a sample file in /usr/share/docs/boa" |
14 |
return 1 |
17 |
return 1 |
15 |
fi |
18 |
fi |
|
|
19 |
|
20 |
# If user specifies a '-c <dir>' in /etc/conf.d/boa, boa |
21 |
# requires there be a boa.conf in that directory. |
22 |
if [ -e /etc/conf.d/boa ] ; then |
23 |
SR=`echo ${BOA_OPTS} | awk '{ FS = " " } { print $2}'` |
24 |
if [ ! -e ${SR}/boa.conf ]; then |
25 |
eerror "You need an ${SR}/boa.conf to run Boa" |
26 |
eerror "There is a sample file in /usr/share/docs/boa" |
27 |
return 1 |
28 |
fi |
29 |
fi |
16 |
} |
30 |
} |
17 |
|
31 |
|
18 |
start() { |
32 |
start() { |
19 |
checkconfig || return 1 |
33 |
checkconfig || return 1 |
20 |
ebegin "Starting Boa" |
34 |
ebegin "Starting Boa" |
21 |
start-stop-daemon --quiet --start --exec /usr/sbin/boa |
35 |
start-stop-daemon --quiet --start --exec /usr/sbin/boa -- ${BOA_OPTS} |
22 |
eend $? |
36 |
eend $? |
23 |
} |
37 |
} |
24 |
|
38 |
|