mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-1651 - point agent scripts to correct logging location, due to move
of /var/log/cloud to /var/log/cloudstack Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1363112422 -0600
This commit is contained in:
parent
cd70c8d03f
commit
0ca85659a6
@ -30,7 +30,7 @@ whatami=cloud-external-ipallocator
|
|||||||
SHORTNAME="$whatami"
|
SHORTNAME="$whatami"
|
||||||
PIDFILE=/var/run/"$whatami".pid
|
PIDFILE=/var/run/"$whatami".pid
|
||||||
LOCKFILE=/var/lock/subsys/"$SHORTNAME"
|
LOCKFILE=/var/lock/subsys/"$SHORTNAME"
|
||||||
LOGFILE=/var/log/cloud/ipallocator/ipallocator.log
|
LOGFILE=/var/log/cloudstack/ipallocator/ipallocator.log
|
||||||
PROGNAME="External IPAllocator"
|
PROGNAME="External IPAllocator"
|
||||||
|
|
||||||
unset OPTIONS
|
unset OPTIONS
|
||||||
|
|||||||
@ -68,7 +68,7 @@ log() {
|
|||||||
|
|
||||||
if [ $shouldwelog -eq 1 ]
|
if [ $shouldwelog -eq 1 ]
|
||||||
then
|
then
|
||||||
echo "$d - $1" >> /var/log/cloud/agent/resizevolume.log
|
echo "$d - $1" >> /var/log/cloudstack/agent/resizevolume.log
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -237,7 +237,7 @@ do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
shouldwelog=1 #set this to 1 while debugging to get output in /var/log/cloud/agent/resizevolume.log
|
shouldwelog=1 #set this to 1 while debugging to get output in /var/log/cloudstack/agent/resizevolume.log
|
||||||
|
|
||||||
if [ "$ptype" == "CLVM" ]
|
if [ "$ptype" == "CLVM" ]
|
||||||
then
|
then
|
||||||
|
|||||||
@ -797,7 +797,7 @@ def addFWFramework(brname):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
logging.basicConfig(filename="/var/log/cloud/security_group.log", format="%(asctime)s - %(message)s", level=logging.DEBUG)
|
logging.basicConfig(filename="/var/log/cloudstack/agent/security_group.log", format="%(asctime)s - %(message)s", level=logging.DEBUG)
|
||||||
parser = OptionParser()
|
parser = OptionParser()
|
||||||
parser.add_option("--vmname", dest="vmName")
|
parser.add_option("--vmname", dest="vmName")
|
||||||
parser.add_option("--vmip", dest="vmIP")
|
parser.add_option("--vmip", dest="vmIP")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user