3 export PATH=`dirname $0`/../utils:$PATH
7 LLMOUNT=${LLMOUNT:-llmount}
8 SECURITY=${SECURITY:-"null"}
15 start_krb5_kdc || exit 1
17 if [ "$PORTALS" ]; then
18 portals_opt="--portals=$PORTALS"
21 if [ "$LUSTRE" ]; then
22 lustre_opt="--lustre=$LUSTRE"
25 if [ "$LDAPURL" ]; then
26 conf_opt="--ldapurl $LDAPURL --config $NAME"
28 if [ ! -f $config -o $mkconfig -nt $config ]; then
29 sh $mkconfig $config || exit 2
34 [ "$NODE" ] && node_opt="--node $NODE"
36 # We'd better start lsvcgssd after gss modules loaded.
37 # remove this if we don't depend on lsvcgssd in the future
38 ${LCONF} --nosetup --sec $SECURITY $portals_opt $node_opt $@ $conf_opt || exit 3
39 start_lsvcgssd || exit 4
42 ${LCONF} $NOMOD --sec $SECURITY $portals_opt $lustre_opt $node_opt \
43 $@ $conf_opt || exit 6
45 if [ "$MOUNT2" ]; then
46 $LLMOUNT -v -o sec=$SECURITY `hostname`:/mds1/client $MOUNT2 || exit 7