Merge pull request #1954 from myENA/bug/vpc-vr-logrotate

CLOUDSTACK-9795: moved logrotate from cron.daily to cron.hourly for vpcrouter moved logrotate from cron.daily to cron.hourly for vpcrouter in cloud-early-config.  This brings 'vpcrouter' inline with 'router'.  We are having issues with cloud.log not rotating fast enough, which filled up /var/log and ultimately caused the VR to stop functioning in such a way that it prevented new VMs from being deployed.

* pr/1954:
  moved logrotate from cron.daily to cron.hourly for vpcrouter in cloud-early-config

Signed-off-by: Rajani Karuturi <rajani.karuturi@accelerite.com>
This commit is contained in:
Rajani Karuturi 2017-02-27 16:37:02 +05:30
commit 3d78802ae7

View File

@ -1058,6 +1058,10 @@ EOF
echo 0 > /var/cache/cloud/dnsmasq_managed_lease
fi
load_modules
#setup hourly logrotate
mv -n /etc/cron.daily/logrotate /etc/cron.hourly 2>&1
}