Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BF: CS-848 logchecker.sh should rotate new accounting file #36

Merged
merged 2 commits into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions source/dist/util/logchecker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#
# All Rights Reserved.
#
# Portions of this software are Copyright (c) 2023-2024 HPC-Gridware GmbH
#
##########################################################################
#___INFO__MARK_END__
#
Expand All @@ -41,8 +43,8 @@
#
# $SGE_ROOT/default/common
#
# directory. This will make sure that new releases or patches of Sun Grid
# Engine don't override your local changes.
# directory. This will make sure that new releases or patches of Cluster
# Scheduler don't override your local changes.
#
#
# After customization this script can be installed as a cron job. If your
Expand Down Expand Up @@ -259,10 +261,18 @@ fi

if [ $ACTION_ON = 1 -o $ACTION_ON = 4 ]; then
sge_logcheck 1 $qma_spool_dir
sge_logcheck 1 $qma_spool_dir/schedd

if [ -f $SGE_ROOT/$SGE_CELL/common/schedd_runlog ]; then
sge_logcheck 2 $SGE_ROOT/$SGE_CELL/common/schedd_runlog
fi

if [ $ACCT = yes ]; then
sge_logcheck 2 $SGE_ROOT/$SGE_CELL/common/accounting
if [ -f $SGE_ROOT/$SGE_CELL/common/accounting.jsonl ]; then
sge_logcheck 2 $SGE_ROOT/$SGE_CELL/common/accounting.jsonl
fi
if [ -f $SGE_ROOT/$SGE_CELL/common/accounting ]; then
sge_logcheck 2 $SGE_ROOT/$SGE_CELL/common/accounting
fi
fi
fi

Expand Down
Loading