summaryrefslogtreecommitdiff
blob: deb86156e08e7c593801fc25d2d4e150f535be4f (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
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

FENG="/usr/bin/feng"
PIDFILE="/var/run/feng.pid"

depend() {
    use net dns
}

start() {
    ebegin "Starting feng"
    start-stop-daemon --start --quiet --background \
                      --make-pidfile \
                      --pidfile ${PIDFILE} \
                      --exec /usr/bin/feng \
                      -- ${FENG_OPTS}
    eend $?
}

stop() {
    ebegin "Stopping feng"
    start-stop-daemon --stop -p ${PIDFILE}  
    eend $?
}