blob: d1158c32f1b1190dc7b45971a34b58c16ff2c40c (
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/sys-apps/qpage/files/qpage,v 1.2 2004/03/06 04:09:07 vapier Exp $
depend() {
need net
}
checkconfig() {
if [ ! -e /etc/qpage/qpage.cf ] ; then
eerror "You need an /etc/qpage/qpage.cf file first."
eerror "There is a sample file in /etc/qpage/."
return 1
fi
}
start() {
checkconfig || return 1
ebegin "Starting qpage"
start-stop-daemon --start --quiet --exec /usr/bin/qpage -- -q 10
eend $?
}
stop() {
ebegin "Stopping qpage"
start-stop-daemon --stop --quiet --exec /usr/bin/qpage
eend $?
}
|