summaryrefslogtreecommitdiff
blob: aa49772f1379033e93cb60c4259cd617fc24a47b (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
29
30
31
32
33
#!/sbin/runscript
#
# Startup script for the Gofish Gopher Server (for Gentoo Linux)
#
# config: /etc/conf.d/gofish
##
# use: rc-update add gofish default
#

opts="start stop"

depend() {
       need net
}


start() {
       ebegin "Starting ${GOFISH_APP} "
       start-stop-daemon --start --verbose --pidfile ${GOFISH_PIDFILE}  \
           --exec  ${GOFISH_EXEC} -- ${GOFISH_START_OPTS}
       eend $?
}


stop() {
       ebegin "Stopping ${GOFISH_APP} "
       start-stop-daemon --stop --quiet --pidfile  ${GOFISH_PIDFILE}  \
           --exec ${GOFISH_EXEC} -- ${GOFISH_STOP_OPTS}
       eend $?
}