Skip to content

Commit

Permalink
HPCC-32049 Cleanup old log files in Roxie runtime directory
Browse files Browse the repository at this point in the history
  • Loading branch information
dcamper committed Jun 12, 2024
1 parent 58aa3e6 commit 8e5945a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions initfiles/bin/init_roxie.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 &
Expand Down

0 comments on commit 8e5945a

Please sign in to comment.