blob: 960a30913bdae721a4e0489804360d1b8f683902 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/boa/files/boa.rc6,v 1.4 2004/03/06 03:54:20 vapier Exp $
depend() {
need net
}
checkconfig() {
if [ ! -e /etc/boa/boa.conf ] ; then
eerror "You need an /etc/boa/boa.conf to run Boa"
eerror "There is a sample file in /usr/share/docs/boa"
return 1
fi
}
start() {
checkconfig || return 1
ebegin "Starting Boa"
start-stop-daemon --quiet --start --exec /usr/sbin/boa
eend $?
}
stop() {
ebegin "Stopping Boa"
start-stop-daemon --quiet --stop --name boa --exec /usr/sbin/boa
eend $?
}
|