Lines 2-7
Link Here
|
2 |
# Copyright 1999-2009 Gentoo Foundation |
2 |
# Copyright 1999-2009 Gentoo Foundation |
3 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# Distributed under the terms of the GNU General Public License v2 |
4 |
|
4 |
|
|
|
5 |
VOLDIR="/etc/glusterfs" |
6 |
VOL="${SVCNAME#*.}" |
7 |
if [ -n "${VOL}" ] && [ "${SVCNAME}" != "glusterfs" ]; then |
8 |
VOLPID="/var/run/glusterfs.${VOL}.pid" |
9 |
else |
10 |
VOLPID=/var/run/glusterfs.pid |
11 |
fi |
12 |
|
5 |
depend() { |
13 |
depend() { |
6 |
use net dns |
14 |
use net dns |
7 |
} |
15 |
} |
Lines 9-23
Link Here
|
9 |
start() { |
17 |
start() { |
10 |
ebegin "Starting ${SVCNAME}" |
18 |
ebegin "Starting ${SVCNAME}" |
11 |
start-stop-daemon --start --exec /usr/sbin/glusterfsd -- \ |
19 |
start-stop-daemon --start --exec /usr/sbin/glusterfsd -- \ |
12 |
--volfile=/etc/glusterfs/${SVCNAME}.vol \ |
20 |
--volfile=/etc/glusterfs/${VOL}.vol \ |
13 |
--pid-file=/var/run/${SVCNAME}.pid \ |
21 |
--pid-file=${VOLPID} \ |
14 |
--log-file=/var/log/glusterfs/${SVCNAME}.log |
22 |
--log-file=/var/log/glusterfs/${VOL}.log \ |
|
|
23 |
${GLUSTERFSD_MOUNTPOINT} |
15 |
eend $? |
24 |
eend $? |
16 |
} |
25 |
} |
17 |
|
26 |
|
18 |
stop() { |
27 |
stop() { |
19 |
ebegin "Stopping ${SVCNAME}" |
28 |
ebegin "Stopping ${SVCNAME}" |
20 |
start-stop-daemon --stop --pidfile /var/run/${SVCNAME}.pid |
29 |
start-stop-daemon --stop --pidfile ${VOLPID} |
21 |
eend $? |
30 |
eend $? |
22 |
} |
31 |
} |
23 |
|
|
|