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
575 B

#!/sbin/openrc-run
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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 $?
}