summaryrefslogtreecommitdiffstats
path: root/testing/qpage/qpage.initd
blob: 6d5528766aa6fe295071a5172da28cad01c43520 (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
#!/sbin/runscript
#
# Startup for QuickPage
#

OPTS_ARGS="q10"

PATH=/sbin:/usr/sbin:/bin:/usr/bin

start() {
	ebegin "Starting QuickPage daemon"
	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec qpage -- ${OPTS_ARGS} >/dev/null
	eend $?
}

stop() {
	ebegin "Stopping QuickPage daemon" 

	pid=`ps -e | grep qpage | awk '{print $1}'`
	if [ ! -z "$pid" ]; then
		kill $pid > /dev/null 2>&1
	fi
	eend $?
}
exit 0