From 8e5945a7db1b3f215254185e6190481d8d7b028b Mon Sep 17 00:00:00 2001 From: "Dan S. Camper" Date: Wed, 12 Jun 2024 13:44:52 -0500 Subject: [PATCH] HPCC-32049 Cleanup old log files in Roxie runtime directory --- initfiles/bin/init_roxie.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/initfiles/bin/init_roxie.in b/initfiles/bin/init_roxie.in index eadb271a4bb..f86d84b5ff7 100755 --- a/initfiles/bin/init_roxie.in +++ b/initfiles/bin/init_roxie.in @@ -68,6 +68,9 @@ killed() exit 255 } +# Delete older *.stdout and *.stderr log files +find . -name "[0-9]*_[0-9]*.std*" -mtime +3 -delete + trap "killed" SIGINT SIGTERM SIGKILL log "Calling nohup roxie --topology=RoxieTopology.xml --logfile --restarts=$restarts --stdlog=0 2>>$logfilename.stderr 1>>$logfilename.stdout &" nohup roxie --topology=RoxieTopology.xml --logfile --restarts=$restarts --stdlog=0 2>>$logfilename.stderr 1>>$logfilename.stdout &