blob: 757820ba4e0a3c548b30068453ddb4cd24c87e61 (
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
|
#!/sbin/runscript
# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/files/mogstored-init.d-2.66,v 1.1 2013/06/25 04:20:45 robbat2 Exp $
NAME="mogstored"
BINARY="/usr/bin/mogstored"
MOGILE_UID="mogile"
MOGILE_GID="mogile"
depend() {
use net
before mogilefsd
need mogautomount
}
start() {
install -o $MOGILE_UID -g $MOGILE_GID -d $(dirname $PIDFILE)
ebegin "Starting $NAME"
start-stop-daemon --start --quiet \
--pidfile=${PIDFILE} --exec ${BINARY} \
-- --daemonize --pidfile=${PIDFILE} ${MOGSTORED_OPTS}
eend $?
}
stop() {
ebegin "Stopping $NAME"
start-stop-daemon --stop --quiet --pidfile="${PIDFILE}"
eend $?
}
# vim: ft=gentoo-init-d:
|