git://git.onelab.eu
/
monitor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
015efbd
)
fix paths
author
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Wed, 20 Jan 2010 14:40:11 +0000
(14:40 +0000)
committer
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Wed, 20 Jan 2010 14:40:11 +0000
(14:40 +0000)
automate-default.sh
patch
|
blob
|
history
diff --git
a/automate-default.sh
b/automate-default.sh
index
3354a69
..
0f0d87f
100755
(executable)
--- a/
automate-default.sh
+++ b/
automate-default.sh
@@
-4,7
+4,7
@@
export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# NOTE: Must be an absolute path to guarantee it is read.
INSTALLPATH=/usr/share/monitor/
# NOTE: Must be an absolute path to guarantee it is read.
INSTALLPATH=/usr/share/monitor/
-$INSTALLPATH/shconfig.py > $INSTALLPATH/monitorconfig.sh
+$INSTALLPATH/
commands/
shconfig.py > $INSTALLPATH/monitorconfig.sh
source $INSTALLPATH/monitorconfig.sh
cd ${MONITOR_SCRIPT_ROOT}
set -e
source $INSTALLPATH/monitorconfig.sh
cd ${MONITOR_SCRIPT_ROOT}
set -e
@@
-13,7
+13,7
@@
MONITOR_PID="${MONITOR_SCRIPT_ROOT}/SKIP"
echo "#######################################"; echo "Running Monitor at $DATE"; echo "######################################"
echo "Performing API test"
echo "#######################################"; echo "Running Monitor at $DATE"; echo "######################################"
echo "Performing API test"
-API=$(
.
/testapi.py)
+API=$(
${MONITOR_SCRIPT_ROOT}/tools
/testapi.py)
if [ "$API" != "ok" ] ; then
# NOTE: Do not try to run any commands if the API is obviously broken.
echo "API IS DOWN : "`date`
if [ "$API" != "ok" ] ; then
# NOTE: Do not try to run any commands if the API is obviously broken.
echo "API IS DOWN : "`date`