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

zrhoffman pushed a commit to branch 6.0.x
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git

commit fe8d50a4891ea68477a00c77dc066516f08c71d5
Author: Rawlin Peters <[email protected]>
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.
    
    (cherry picked from commit e9586bf6ab17b548ea0bc082edee83dfbfbdf70c)
---
 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
 

Reply via email to