From 921cf1e36ea6efcee680a49a21581f0ffc01a61b Mon Sep 17 00:00:00 2001 From: pschwan Date: Sat, 12 Apr 2003 20:07:45 +0000 Subject: [PATCH] - merge b_devel into b_proto (incl b_swab changes) - fix leak-all-bulk-pages bug - Mike fixed a bug where a failed ptlrpc_queue_wait send buf would fail, but the user would still have to wait for the timeout to pass before being able to interrupt --- lustre/scripts/llite-group.sh | 67 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 lustre/scripts/llite-group.sh diff --git a/lustre/scripts/llite-group.sh b/lustre/scripts/llite-group.sh new file mode 100644 index 0000000..1cc0758 --- /dev/null +++ b/lustre/scripts/llite-group.sh @@ -0,0 +1,67 @@ +#!/bin/sh +# +# llite-group.sh : Cluster Manager service script for Lustre +# +# This must be named llite-.sh, where group is the device +# group that is being managed by the cluster manager service. +# + +set -e +set -vx + +[ -f ${LUSTRE_CFG:=/etc/lustre/lustre.cfg} ] && . ${LUSTRE_CFG} + +LDAPURL=${LDAPURL:-ldap://localhost} +CONFIG=${CONFIG:-test23} + +LACTIVE=${LACTIVE:-/usr/sbin/lactive} +LCONF=${LCONF:-/usr/sbin/lconf} + +group=`basename $0 .sh| cut -d- -f2` +confopt="--ldapurl $LDAPURL --config $CONFIG" + +[ -z "$group" ] && exit 0 + +node=`hostname -s` + +[ -d ${STATUS_DIR:=/var/lustre} ] || mkdir -p $STATUS_DIR + +start() { + echo -n "Starting $SERVICE: " + python2 $LACTIVE $confopt --group $group --active $node + python2 $LCONF -v $confopt + RETVAL=$? + echo done +} + +stop() { + echo -n "Shutting down $SERVICE: " + python2 $LCONF -dv $confopt + RETVAL=$? + echo done +} + +status() { + RETVAL=0 +} + + +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart) + restart + ;; + status) + status $SERVICE + ;; + *) + echo "Usage: $0 {start|stop|status}" + exit 1 +esac + +exit $RETVAL -- 1.8.3.1