blob: 88b635b8f870dc85739ffecc94bf2d5933def832 (
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
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:
|