Add TO Golang logrotate

Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/89491c1c
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/89491c1c
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/89491c1c

Branch: refs/heads/master
Commit: 89491c1c033ac54810216e72c746b36ee97e0413
Parents: e1dab67
Author: Robert Butts <robert.o.bu...@gmail.com>
Authored: Wed Jul 26 18:28:25 2017 -0600
Committer: Dewayne Richardson <dewr...@apache.org>
Committed: Thu Aug 10 09:46:03 2017 -0600

----------------------------------------------------------------------
 traffic_ops/build/traffic_ops.spec              |  4 ++++
 traffic_ops/etc/logrotate.d/traffic_ops_golang  | 22 ++++++++++++++++++++
 .../etc/logrotate.d/traffic_ops_perl_access     | 22 ++++++++++++++++++++
 3 files changed, 48 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/89491c1c/traffic_ops/build/traffic_ops.spec
----------------------------------------------------------------------
diff --git a/traffic_ops/build/traffic_ops.spec 
b/traffic_ops/build/traffic_ops.spec
index 8efa676..26d19e8 100644
--- a/traffic_ops/build/traffic_ops.spec
+++ b/traffic_ops/build/traffic_ops.spec
@@ -140,13 +140,17 @@ Built: %(date) by %{getenv: USER}
     %__cp %{PACKAGEDIR}/etc/cron.d/trafops_dnssec_refresh 
/etc/cron.d/trafops_dnssec_refresh
     %__cp %{PACKAGEDIR}/etc/cron.d/trafops_clean_isos 
/etc/cron.d/trafops_clean_isos
     %__cp %{PACKAGEDIR}/etc/logrotate.d/traffic_ops 
/etc/logrotate.d/traffic_ops
+    %__cp %{PACKAGEDIR}/etc/logrotate.d/traffic_ops_golang 
/etc/logrotate.d/traffic_ops_golang
     %__cp %{PACKAGEDIR}/etc/logrotate.d/traffic_ops_access 
/etc/logrotate.d/traffic_ops_access
+    %__cp %{PACKAGEDIR}/etc/logrotate.d/traffic_ops_perl_access 
/etc/logrotate.d/traffic_ops_perl_access
     %__cp %{PACKAGEDIR}/etc/profile.d/traffic_ops.sh 
/etc/profile.d/traffic_ops.sh
     %__chown root:root /etc/init.d/traffic_ops
     %__chown root:root /etc/cron.d/trafops_dnssec_refresh
     %__chown root:root /etc/cron.d/trafops_clean_isos
     %__chown root:root /etc/logrotate.d/traffic_ops
+    %__chown root:root /etc/logrotate.d/traffic_ops_golang
     %__chown root:root /etc/logrotate.d/traffic_ops_access
+    %__chown root:root /etc/logrotate.d/traffic_ops_perl_access
     %__chmod +x /etc/init.d/traffic_ops
     %__chmod +x %{PACKAGEDIR}/install/bin/*
     /sbin/chkconfig --add traffic_ops

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/89491c1c/traffic_ops/etc/logrotate.d/traffic_ops_golang
----------------------------------------------------------------------
diff --git a/traffic_ops/etc/logrotate.d/traffic_ops_golang 
b/traffic_ops/etc/logrotate.d/traffic_ops_golang
new file mode 100644
index 0000000..088aa34
--- /dev/null
+++ b/traffic_ops/etc/logrotate.d/traffic_ops_golang
@@ -0,0 +1,22 @@
+#
+#
+# Licensed 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/traffic_ops/traffic_ops_golang.log {
+    missingok
+    notifempty
+    size 200M
+    rotate 7
+    copytruncate
+    compress
+}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/89491c1c/traffic_ops/etc/logrotate.d/traffic_ops_perl_access
----------------------------------------------------------------------
diff --git a/traffic_ops/etc/logrotate.d/traffic_ops_perl_access 
b/traffic_ops/etc/logrotate.d/traffic_ops_perl_access
new file mode 100644
index 0000000..8014de9
--- /dev/null
+++ b/traffic_ops/etc/logrotate.d/traffic_ops_perl_access
@@ -0,0 +1,22 @@
+#
+#
+# Licensed 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/traffic_ops/perl_access.log {
+    missingok
+    notifempty
+    size 200M
+    rotate 7
+    copytruncate
+    compress
+}

Reply via email to