Skip to content

Commit

Permalink
Move cronjobs to daily script
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingface0 committed Jun 21, 2024
1 parent 6fbb3bd commit 268629a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions deploy_dqmgui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 -
Expand Down Expand Up @@ -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 [email protected]; 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 [email protected]; 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
Expand Down

0 comments on commit 268629a

Please sign in to comment.