From 268629a5555bb552dfdfeafcaeabce0ec2d59c75 Mon Sep 17 00:00:00 2001 From: Dimitris Papagiannis Date: Fri, 21 Jun 2024 15:37:39 +0200 Subject: [PATCH] Move cronjobs to daily script --- deploy_dqmgui.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/deploy_dqmgui.sh b/deploy_dqmgui.sh index 3c8a5c8..8759c4c 100755 --- a/deploy_dqmgui.sh +++ b/deploy_dqmgui.sh @@ -181,7 +181,6 @@ install_crontab() { ( crontab -l # Get existing crontabs echo "17 2 * * * $INSTALLATION_DIR/current/config/dqmgui/daily" - echo "0 3 * * * /usr/sbin/logrotate $INSTALLATION_DIR/current/sw/cms/dqmgui/$DQMGUI_GIT_TAG/128/etc/logrotate.conf --state $INSTALLATION_DIR/state/dqmgui/logrotate.state --verbose --log $INSTALLATION_DIR/logs/dqmgui/logrotate.log" echo "HOME=/tmp" # Workaround for P5, where the home dir is an NFS mount and isn't immediately available. echo "@reboot (sleep 30 && $INSTALLATION_DIR/current/config/dqmgui/manage sysboot)" ) | crontab - @@ -215,8 +214,6 @@ install_acrontab() { echo "*/15 * * * * $HOST $INSTALLATION_DIR/current/config/dqmgui/manage zipbackup 'I did read documentation'; ret=\$?; if [ \$ret -ne 3 ] && [ \$ret -ne 0 ] && [ \$ret -ne 4 ]; then echo Error during backup | mailx -s \"$FLAVOR DQM GUI Zip Backup, exit code: \$ret\" -a $INSTALLATION_DIR/logs/dqmgui/$FLAVOR/agent-castorzipbackup-$HOST.log cmsweb-operator@cern.ch; fi" # check/verification HOST the backup of the zipped root files echo "*/15 * * * * $HOST $INSTALLATION_DIR/current/config/dqmgui/ zipbackupcheck 'I did read documentation'; ret=\$?; if [ \$ret -ne 3 ] && [ \$ret -ne 0 ] && [ \$ret -ne 4 ]; then echo Error during backup | mailx -s \"$FLAVOR DQM GUI Zip Backup Check, exit code: \$ret\" -a $INSTALLATION_DIR/logs/dqmgui/$FLAVOR/agent-castorzipbackupcheck-$HOST.log cmsweb-operator@cern.ch; fi" - # Monitor index size - echo "0 6 * * * $HOST $INSTALLATION_DIR/current/config/dqmgui/manage indexmonitor 'I did read documentation'" ) | acrontab } # Create necessary directories for installation