You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/qpage/files/qpage

30 lines
671 B

#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/qpage/files/qpage,v 1.2 2006/02/10 17:46:34 chutzpah Exp $
depend() {
need net
}
checkconfig() {
if [ ! -e /etc/qpage/qpage.cf ] ; then
eerror "You need a /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 $?
}