blob: 5b8c053089c969c87dcc7d2a1715ff04c1bd8ec3 (
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
|
#!/sbin/runscript
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Gearman-Server/files/gearmand-init.d-1.09,v 1.2 2007/05/13 08:10:05 robbat2 Exp $
NAME="gearmand"
BINARY="/usr/bin/gearmand"
depend() {
use net
}
start() {
# start-stop-daemon does not work properly in certain cases
# this hack should go away when bug #178274 is resolved.
ebegin "Starting $NAME"
start-stop-daemon --start --pidfile="${PIDFILE}" \
--exec ${BINARY} -- ${GEARMAND_OPTS}
eend $?
}
stop() {
ebegin "Stopping $NAME"
start-stop-daemon --stop --pidfile="${PIDFILE}"
eend $?
}
# vim: ft=gentoo-init-d:
|