You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2015/10/28 20:02:02 UTC

git commit: updated refs/heads/4.5 to bacf971

Repository: cloudstack
Updated Branches:
  refs/heads/4.5 59f337da5 -> bacf97122


CLOUDSTACK-9000: logrotate cloudstack-agent out and err logs

Adds logrotate rules for cloudstack-agent.{err,out} log files

Signed-off-by: Rohit Yadav <ro...@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/bacf9712
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/bacf9712
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/bacf9712

Branch: refs/heads/4.5
Commit: bacf971220ea97e80ac2fcf28de3ed9a51749522
Parents: 59f337d
Author: Rohit Yadav <ro...@shapeblue.com>
Authored: Wed Oct 28 11:14:49 2015 +0530
Committer: Rohit Yadav <ro...@shapeblue.com>
Committed: Wed Oct 28 11:14:49 2015 +0530

----------------------------------------------------------------------
 agent/conf/cloudstack-agent.logrotate | 26 ++++++++++++++++++++++++++
 packaging/centos63/cloud.spec         |  1 +
 2 files changed, 27 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bacf9712/agent/conf/cloudstack-agent.logrotate
----------------------------------------------------------------------
diff --git a/agent/conf/cloudstack-agent.logrotate b/agent/conf/cloudstack-agent.logrotate
new file mode 100644
index 0000000..202de8f
--- /dev/null
+++ b/agent/conf/cloudstack-agent.logrotate
@@ -0,0 +1,26 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+/var/log/cloudstack/agent/cloudstack-agent.out
+/var/log/cloudstack/agent/cloudstack-agent.err
+{
+    copytruncate
+    daily
+    rotate 5
+    compress
+    missingok
+}

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bacf9712/packaging/centos63/cloud.spec
----------------------------------------------------------------------
diff --git a/packaging/centos63/cloud.spec b/packaging/centos63/cloud.spec
index 3efa54e..133e11a 100644
--- a/packaging/centos63/cloud.spec
+++ b/packaging/centos63/cloud.spec
@@ -347,6 +347,7 @@ install -D agent/target/transformed/cloudstack-agent-upgrade ${RPM_BUILD_ROOT}%{
 install -D agent/target/transformed/libvirtqemuhook ${RPM_BUILD_ROOT}%{_datadir}/%{name}-agent/lib/libvirtqemuhook
 install -D agent/target/transformed/cloud-ssh ${RPM_BUILD_ROOT}%{_bindir}/%{name}-ssh
 install -D agent/target/transformed/cloudstack-agent-profile.sh ${RPM_BUILD_ROOT}%{_sysconfdir}/profile.d/%{name}-agent-profile.sh
+install -D agent/target/transformed/cloudstack-agent.logrotate ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/cloudstack-agent
 install -D plugins/hypervisors/kvm/target/cloud-plugin-hypervisor-kvm-%{_maventag}.jar ${RPM_BUILD_ROOT}%{_datadir}/%name-agent/lib/cloud-plugin-hypervisor-kvm-%{_maventag}.jar
 cp plugins/hypervisors/kvm/target/dependencies/*  ${RPM_BUILD_ROOT}%{_datadir}/%{name}-agent/lib