From 1db49f1c8182c8e896bdf74ef2071f24545161d3 Mon Sep 17 00:00:00 2001 From: jacob Date: Fri, 8 Jul 2005 21:51:14 +0000 Subject: [PATCH] allow specifying http config files with the init script --- lustre/scripts/lustre | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lustre/scripts/lustre b/lustre/scripts/lustre index f4dc21e..6ee354a 100755 --- a/lustre/scripts/lustre +++ b/lustre/scripts/lustre @@ -50,7 +50,12 @@ check_start_stop() { [ -x ${LCONF} -a -x ${LCTL} ] || exit 0 - [ -f ${LUSTRE_CONFIG_XML} ] || ( echo "unconfigured" && exit 0 ) + if [ ${LUSTRE_CONFIG_XML:0:1} = "/" ] ; then + if [ ! -f ${LUSTRE_CONFIG_XML} ] ; then + echo "${0##*/}: Configuration file ${LUSTRE_CONFIG_XML} not found; skipping." + echo 0 + fi + fi # Create /var/lustre directory # This is used by snmp agent for checking lustre services -- 1.8.3.1