blob: d2c228addcb276f820ec762aa4a79022b0e1bc45 (
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/openrc-run
#
# 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
|