diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-06-02 21:45:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-06-02 21:45:28 +0100 |
commit | 2018227e9344edb9da15fc6a4a8298086cc2aa77 (patch) | |
tree | c18e1c09e605e94e2a1e93345ad25746cc9e14b9 /sys-cluster/moosefs/files | |
parent | 6f8038813c460b4f0572d5ef595cdfa94af3a94d (diff) |
gentoo resync : 02.06.2019
Diffstat (limited to 'sys-cluster/moosefs/files')
-rw-r--r-- | sys-cluster/moosefs/files/mfs.confd | 11 | ||||
-rw-r--r-- | sys-cluster/moosefs/files/mfs.initd-r1 | 96 | ||||
-rw-r--r-- | sys-cluster/moosefs/files/mfscgiserver.confd | 9 | ||||
-rw-r--r-- | sys-cluster/moosefs/files/mfscgiserver.initd-r1 | 29 |
4 files changed, 0 insertions, 145 deletions
diff --git a/sys-cluster/moosefs/files/mfs.confd b/sys-cluster/moosefs/files/mfs.confd deleted file mode 100644 index 423795e33355..000000000000 --- a/sys-cluster/moosefs/files/mfs.confd +++ /dev/null @@ -1,11 +0,0 @@ -# Which mooseFS roles should we start ? -# -# NOTE: The roles are stopped in *reverse* order of the given list -# so make sure to list mfsmaster *before* the other roles. -# -# Possible values: mfsmaster mfsmetalogger mfschunkserver -#ROLES="" - -# If the role mfsmaster fails to start, should we try to run mfsmetarestore -a ? -# Possible values: 0 (no), 1 (yes) -AUTORESTORE=0
\ No newline at end of file diff --git a/sys-cluster/moosefs/files/mfs.initd-r1 b/sys-cluster/moosefs/files/mfs.initd-r1 deleted file mode 100644 index 89715bf310c9..000000000000 --- a/sys-cluster/moosefs/files/mfs.initd-r1 +++ /dev/null @@ -1,96 +0,0 @@ -#!/sbin/openrc-run - -extra_started_commands="reload" - -depend() { - need net -} - -chkconfig() { - [ -z "${ROLES}" ] && { eerror "No role defined !"; return 1;} - for ROLE in ${ROLES}; do - if [ ! -f /etc/mfs/${ROLE}.cfg ]; then - eerror "Missing configuration file for role ${ROLE} !" - return 1 - fi - done - return 0 -} - -autorestore() { - einfo "AUTORESTORE set, trying to restore metadata files" - mfsmetarestore -a &>/dev/null - return $? -} - -start_role() { - local ROLE=$1 - local RETURN=0 - - ebegin "${ROLE}" - start-stop-daemon -q --start --exec "${ROLE}" -- start >/dev/null - RETURN=$? - eend ${RETURN} - - return ${RETURN} -} - -start_roles() { - local RETURN=0 - - eindent - for ROLE in ${ROLES}; do - - start_role ${ROLE} || RETURN=$? - eend ${RETURN} - - if [ "${RETURN}" != "0" ] && [ "${ROLE}" == "mfsmaster" ] && [ ${AUTORESTORE} -eq 1 ]; then - eindent - autorestore && start_role ${ROLE} - RETURN=$? - eoutdent - fi - - [ "${RETURN}" != "0" ] && break - done - eoutdent - - return ${RETURN} -} - -start() { - ebegin "Starting mfs node" - chkconfig && start_roles - eend $? -} - -stop() { - local RETURN=0 - - ebegin "Stopping mfs node" - eindent - local REVERSE=$(echo ${ROLES} | tac -s' ') - for ROLE in ${REVERSE}; do - ebegin "${ROLE}" - start-stop-daemon -q --stop -n ${ROLE} || RETURN=$? - eend ${RETURN} - done - eoutdent - - eend ${RETURN} -} - -reload() { - local RETURN=0 - - ebegin "Reloading mfs node" - eindent - for ROLE in ${ROLES}; do - ebegin "${ROLE}" - start-stop-daemon --signal HUP -n ${ROLE} - eend ${RETURN} - done - eoutdent - - eend ${RETURN} -} diff --git a/sys-cluster/moosefs/files/mfscgiserver.confd b/sys-cluster/moosefs/files/mfscgiserver.confd deleted file mode 100644 index ae93c54f4f94..000000000000 --- a/sys-cluster/moosefs/files/mfscgiserver.confd +++ /dev/null @@ -1,9 +0,0 @@ -# MooseFS HTTP/CGI server configuration. - -# BIND_HOST: local address to listen on -# default: any -BIND_HOST="0.0.0.0" - -# BIND_PORT: port to listen on -# default: 9425 -BIND_PORT=9425 diff --git a/sys-cluster/moosefs/files/mfscgiserver.initd-r1 b/sys-cluster/moosefs/files/mfscgiserver.initd-r1 deleted file mode 100644 index d60cf8034cd5..000000000000 --- a/sys-cluster/moosefs/files/mfscgiserver.initd-r1 +++ /dev/null @@ -1,29 +0,0 @@ -#!/sbin/openrc-run - -PIDFILE=/var/run/mfscgiserv.pid - -extra_started_commands="reload" - -depend() { - need net -} - -start() { - ebegin "Starting mfs CGI server" - start-stop-daemon --start --quiet --exec /usr/sbin/mfscgiserv \ - --pidfile "${PIDFILE}" --make-pidfile --background \ - -- -H ${BIND_HOST} -P ${BIND_PORT} -f - eend $? -} - -stop() { - ebegin "Stopping mfs CGI server" - start-stop-daemon --stop -q --pidfile "${PIDFILE}" - eend $? -} - -reload() { - ebegin "Reloading mfs CGI server" - start-stop-daemon --signal HUP --pidfile "${PIDFILE}" - eend $? -} |