mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
25 lines
332 B
Plaintext
Executable File
25 lines
332 B
Plaintext
Executable File
#!/bin/bash
|
|
|
|
source /root/func.sh
|
|
|
|
lock="rrouter"
|
|
locked=$(getLockFile $lock)
|
|
if [ "$locked" != "1" ]
|
|
then
|
|
exit 1
|
|
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
|
|
|
|
unlock_exit $? $lock $locked
|