perfsonar-dev - perfsonar: r4201 - trunk/packaging/deb/ps-mdm-flowsa-ma
Subject: perfsonar development work
List archive
- From:
- To:
- Subject: perfsonar: r4201 - trunk/packaging/deb/ps-mdm-flowsa-ma
- Date: Wed, 16 Jul 2008 07:04:48 -0400
Author: gijs
Date: 2008-07-16 07:04:47 -0400 (Wed, 16 Jul 2008)
New Revision: 4201
Modified:
trunk/packaging/deb/ps-mdm-flowsa-ma/init
Log:
replaced exit 1 with exit 0 so the package upgrade doesn't fail when there
are no exporters configured.
Modified: trunk/packaging/deb/ps-mdm-flowsa-ma/init
===================================================================
--- trunk/packaging/deb/ps-mdm-flowsa-ma/init 2008-07-16 09:51:31 UTC (rev
4200)
+++ trunk/packaging/deb/ps-mdm-flowsa-ma/init 2008-07-16 11:04:47 UTC (rev
4201)
@@ -31,28 +31,28 @@
;;
true) ;;
*) log_failure_msg "Value of FLOWSA_ENABLE should be true or false"
- exit 1
+ exit 0
;;
esac
if [ ! -f $CONF ]; then
log_failure_msg "service.properties location incorrect ($CONF)"
- exit 1;
+ exit 0;
fi
# get nfcapd location
NFCAPD=`grep ^service\.ma\.flowsa\.nfcapd\.location $CONF | cut -f 2 -d =`
if [ ! -x $NFCAPD ] || [ -z $NFCAPD ]; then
log_failure_msg "nfcapd location incorrect ($NFCAPD)"
- exit 1;
+ exit 0;
fi
# where should the pid files be stored
RUNFOLDER=`grep ^service\.ma\.flowsa\.nfcapd\.run $CONF | cut -f 2 -d =`
if [ ! -d $RUNFOLDER ] || [ -z $RUNFOLDER ]; then
log_failure_msg "nfcapd.run folder doesn't exists ($RUNFOLDER)"
- exit 1;
+ exit 0;
fi
@@ -71,7 +71,7 @@
if [ $EXPNUM == 0 ]; then
log_failure_msg "no exporters configured in $CONF"
- exit 1;
+ exit 0;
fi
@@ -79,7 +79,7 @@
STORAGE=`grep ^service\.ma\.flowsa\.nfdump\.source $CONF | cut -f 2 -d =`
if [ ! -d $STORAGE ] || [ -z $STORAGE ]; then
log_failure_msg "nfdump.source folder doesn't exists ($STORAGE)"
- exit 1;
+ exit 0;
fi
case "$1" in
@@ -89,14 +89,14 @@
HOST=`grep ^service\.common\.flow\.exporter\.$NUM\.address
$CONF | cut -f 2 -d =`
if [ -z $HOST ]; then
log_failure_msg
"service.common.flow.exporter.$NUM.address not defined in $CONF"
- exit 1
+ exit 0
fi
# read port from properties file, and check if it exists
PORT=`grep ^service\.common\.flow\.exporter\.$NUM\.port $CONF
| cut -f 2 -d =`
if [ -z $PORT ]; then
log_failure_msg
"service.common.flow.exporter.$NUM.port not defined in $CONF"
- exit 1
+ exit 0
fi
PIDFILE=$RUNFOLDER/$NUM.pid
- perfsonar: r4201 - trunk/packaging/deb/ps-mdm-flowsa-ma, svnlog, 07/16/2008
Archive powered by MHonArc 2.6.16.