blob: 5667b78a7c1b93d5470f56b4493e1013d1428aab (
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/openrc-run
#
# 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 $?
}
|