mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
40 lines
514 B
Plaintext
Executable File
40 lines
514 B
Plaintext
Executable File
#!/bin/bash
|
|
|
|
source /root/func.sh
|
|
|
|
nolock=0
|
|
if [ $# -eq 1 ]
|
|
then
|
|
if [ $1 == "--no-lock" ]
|
|
then
|
|
nolock=1
|
|
fi
|
|
fi
|
|
|
|
if [ $nolock -eq 0 ]
|
|
then
|
|
lock="biglock"
|
|
locked=$(getLockFile $lock)
|
|
if [ "$locked" != "1" ]
|
|
then
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
bumped="Bumped: NO"
|
|
if [ -e /tmp/rrouter_bumped ]
|
|
then
|
|
bumped="Bumped: YES"
|
|
fi
|
|
|
|
stat=`tail -n 1 [RROUTER_LOG] | grep "Status"`
|
|
if [ $? -eq 0 ]
|
|
then
|
|
echo "$stat&$bumped"
|
|
fi
|
|
|
|
if [ $nolock -eq 0 ]
|
|
then
|
|
unlock_exit $? $lock $locked
|
|
fi
|