This is an automated email from the ASF dual-hosted git repository. ocket8888 pushed a commit to branch 5.1.x in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
commit 667e393fb100096d9458fd7b11df1b638568cec7 Author: Zach Hoffman <[email protected]> AuthorDate: Thu Mar 18 14:50:11 2021 -0600 TM init.d script: Append to traffic_monitor.log (#5655) * TM init.d script: Append to traffic_monitor.log * Do not have the init.d script to append stdout to the Traffic Monitor log * Do not redirect stderr to stdout (cherry picked from commit 12a4843f3b762887d0bb31f48d1b37080cccefbe) --- CHANGELOG.md | 1 + traffic_monitor/build/traffic_monitor.init | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2dc9946..0685770 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Fix for config gen missing max_origin_connections on mids in certain scenarios - [#5192](https://github.com/apache/trafficcontrol/issues/5192) - Fixed TO log warnings when generating snapshots for topology-based delivery services. - Fixed Invalid TS logrotate configuration permissions causing TS logs to be ignored by logrotate. +- [#5604](https://github.com/apache/trafficcontrol/issues/5604) - traffic_monitor.log is no longer truncated when restarting Traffic Monitor ## [5.1.0] - 2021-02-21 ### Added diff --git a/traffic_monitor/build/traffic_monitor.init b/traffic_monitor/build/traffic_monitor.init index 9240ead..6fa6b69 100644 --- a/traffic_monitor/build/traffic_monitor.init +++ b/traffic_monitor/build/traffic_monitor.init @@ -63,7 +63,7 @@ start() { # Start daemons. echo -n $"Starting $name: " - daemon nohup $prog $options < /dev/null > /opt/traffic_monitor/var/log/traffic_monitor.log 2>&1 & + daemon nohup $prog $options < /dev/null & RETVAL=$? echo [ $RETVAL -eq 0 ] && touch $lockfile
