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:
Marcus Sorensen 2013-03-12 12:20:22 -06:00
parent cd70c8d03f
commit 0ca85659a6
3 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ whatami=cloud-external-ipallocator
SHORTNAME="$whatami"
PIDFILE=/var/run/"$whatami".pid
LOCKFILE=/var/lock/subsys/"$SHORTNAME"
LOGFILE=/var/log/cloud/ipallocator/ipallocator.log
LOGFILE=/var/log/cloudstack/ipallocator/ipallocator.log
PROGNAME="External IPAllocator"
unset OPTIONS

View File

@ -68,7 +68,7 @@ log() {
if [ $shouldwelog -eq 1 ]
then
echo "$d - $1" >> /var/log/cloud/agent/resizevolume.log
echo "$d - $1" >> /var/log/cloudstack/agent/resizevolume.log
fi
}
@ -237,7 +237,7 @@ do
esac
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" ]
then

View File

@ -797,7 +797,7 @@ def addFWFramework(brname):
return False
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.add_option("--vmname", dest="vmName")
parser.add_option("--vmip", dest="vmIP")