Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 200571 Details for
Bug 167955
[science] net-fs/glusterfs (new ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
A great init.d script for GlusterFS
glusterfs.initd (text/plain), 2.96 KB, created by
John Simmonds (overfuse)
on 2009-08-08 13:27:47 UTC
(
hide
)
Description:
A great init.d script for GlusterFS
Filename:
MIME Type:
Creator:
John Simmonds (overfuse)
Created:
2009-08-08 13:27:47 UTC
Size:
2.96 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2009 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >if [[ "${SVCNAME}" != "glusterfs" ]] >then > GLUSTERFS_NAME="${SVCNAME#glusterfs.}" >else > GLUSTERFS_NAME="glusterfs" >fi > >GLUSTERFS_PIDFILE="/var/run/${SVCNAME}.pid" > >eval 'GLUSTERFS_LOGFILE="${'${GLUSTERFS_NAME}'_log:-/var/log/glusterfs/'${GLUSTERFS_NAME}'.log}"' >eval 'GLUSTERFS_VOLFILE="${'${GLUSTERFS_NAME}'_vol:-/etc/glusterfs/'${GLUSTERFS_NAME}'.vol}"' >eval 'GLUSTERFS_SERVER="${'${GLUSTERFS_NAME}'_server}"' >eval 'GLUSTERFS_PORT="${'${GLUSTERFS_NAME}'_port:-6996}"' >eval 'GLUSTERFS_TRANSPORT="${'${GLUSTERFS_NAME}'_transport:-socket}"' >eval 'GLUSTERFS_OPTS="${'${GLUSTERFS_NAME}'_opts}"' >eval 'GLUSTERFS_MOUNTPOINT="${'${GLUSTERFS_NAME}'_mountpoint}"' > >depend() { > need net openib net.ib0 > [[ -n "${GLUSTERFS_MOUNTPOINT}" ]] && need fuse > use dns > after firewall ntp-client ntpd >} > >checkconfig() { > if [[ -z "${GLUSTERFS_NAME}" ]] > then > eerror "The service name is not properly formatted." > return 1 > fi > > if [[ -z "${GLUSTERFS_SERVER}" ]] > then > if [[ -z "${GLUSTERFS_VOLFILE}" ]] > then > eerror "No GlusterFS volume file source has been defined. Edit /etc/conf.d/glusterfs" > eerror "and configure a volume file source for ${SVCNAME}." > return 1 > else > if [[ ! -f "${GLUSTERFS_VOLFILE}" ]] > then > eerror "Cannot find volume file: ${GLUSTERFS_VOLFILE}" > return 1 > fi > fi > fi > > if [[ -n "${GLUSTERFS_MOUNTPOINT}" && ! -d "${GLUSTERFS_MOUNTPOINT}" ]] > then > eerror "The mountpoint ${GLUSTERFS_MOUNTPOINT} does not exist." > return 1 > fi >} > >start() { > local status > > checkconfig || return 1 > > ebegin "Starting GlusterFS (${SVCNAME})" > eindent > > if [[ -z "${GLUSTERFS_MOUNTPOINT}" ]] > then > einfo "Starting in server mode ..." > else > einfo "Starting in client mode. Mounting filesystem ..." > fi > > if [[ -n "${GLUSTERFS_SERVER}" ]] > then > einfo "Using server supplied volume file" > start-stop-daemon --start --pidfile ${GLUSTERFS_PIDFILE} \ > --exec /usr/sbin/glusterfsd -- \ > --pid-file=${GLUSTERFS_PIDFILE} \ > --log-file=${GLUSTERFS_LOGFILE} \ > --volfile-server=${GLUSTERFS_SERVER} \ > --volfile-server-port=${GLUSTERFS_PORT} \ > --volfile-server-transport=${GLUSTERFS_TRANSPORT} \ > ${GLUSTERFS_OPTS} ${GLUSTERFS_MOUNTPOINT} > status="$?" > else > einfo "Using local volume file" > start-stop-daemon --start --pidfile ${GLUSTERFS_PIDFILE} \ > --exec /usr/sbin/glusterfsd -- \ > --pid-file=${GLUSTERFS_PIDFILE} \ > --log-file=${GLUSTERFS_LOGFILE} \ > --volfile=${GLUSTERFS_VOLFILE} \ > ${GLUSTERFS_OPTS} ${GLUSTERFS_MOUNTPOINT} > status="$?" > fi > > eoutdent > eend ${status} >} > >stop() { > local status > > ebegin "Stopping GlusterFS (${SVCNAME})" > eindent > if [[ -z "${GLUSTERFS_MOUNTPOINT}" ]] > then > einfo "Stopping server process ..." > start-stop-daemon --stop --pidfile ${GLUSTERFS_PIDFILE} > status="$?" > else > einfo "Unmounting ${GLUSTERFS_MOUNTPOINT} ..." > umount "${GLUSTERFS_MOUNTPOINT}" > status="$?" > fi > eoutdent > eend ${status} >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 167955
:
110951
|
110963
|
112915
|
113823
|
113936
|
114026
|
117753
|
117779
|
119420
|
125780
|
125782
|
125784
|
127701
|
130096
|
144150
|
157681
|
168144
|
178899
|
180179
|
184027
|
186994
|
186995
|
191364
|
191371
|
191372
|
191374
|
191375
|
191376
|
191377
|
191378
|
191379
|
191380
|
191382
|
195121
|
195123
|
195463
| 200571