summaryrefslogtreecommitdiff
blob: 81ffe86d9950d443b41a56abab40fb483607a512 (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
#!/sbin/openrc-run
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

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 $?
}