You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2021/10/20 16:12:30 UTC

[trafficcontrol] branch master updated: Truncate DNSSEC refresh cron job log file before runs (#6302)

This is an automated email from the ASF dual-hosted git repository.

mitchell852 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new e9586bf  Truncate DNSSEC refresh cron job log file before runs (#6302)
e9586bf is described below

commit e9586bf6ab17b548ea0bc082edee83dfbfbdf70c
Author: Rawlin Peters <ra...@apache.org>
AuthorDate: Wed Oct 20 10:12:23 2021 -0600

    Truncate DNSSEC refresh cron job log file before runs (#6302)
    
    In an environment where this cron job is not overwritten with valid
    credentials, it will slowly fill up the TO disk. Plus, we really only
    care about logs from the most recent run. Without valid credentials, an
    error is logged.
---
 traffic_ops/etc/cron.d/trafops_dnssec_refresh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/traffic_ops/etc/cron.d/trafops_dnssec_refresh b/traffic_ops/etc/cron.d/trafops_dnssec_refresh
index 435b805..6404701 100644
--- a/traffic_ops/etc/cron.d/trafops_dnssec_refresh
+++ b/traffic_ops/etc/cron.d/trafops_dnssec_refresh
@@ -15,5 +15,5 @@
 # specific language governing permissions and limitations
 # under the License.
 #
-*/5 * * * * trafops /opt/traffic_ops/app/bin/checks/DnssecRefresh/ToDnssecRefresh --traffic-ops-url https://localhost --traffic-ops-user admin --traffic-ops-password twelve --log-location-error /var/log/traffic_ops/trafops_dnssec_refresh.log --log-location-warning /var/log/traffic_ops/trafops_dnssec_refresh.log --log-location-info /var/log/traffic_ops/trafops_dnssec_refresh.log
+*/5 * * * * trafops > /var/log/traffic_ops/trafops_dnssec_refresh.log && /opt/traffic_ops/app/bin/checks/DnssecRefresh/ToDnssecRefresh --traffic-ops-url https://localhost --traffic-ops-user admin --traffic-ops-password twelve --log-location-error /var/log/traffic_ops/trafops_dnssec_refresh.log --log-location-warning /var/log/traffic_ops/trafops_dnssec_refresh.log --log-location-info /var/log/traffic_ops/trafops_dnssec_refresh.log