Skip to content

Commit

Permalink
Fix logrotate cron & config
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingface0 committed Nov 27, 2023
1 parent dc0cc77 commit 8e83565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy_dqmgui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ install_crontab() {
crontab -l # Get existing crontabs
echo "17 2 * * * $INSTALLATION_DIR/current/config/dqmgui/daily"
echo "@reboot $INSTALLATION_DIR/current/config/dqmgui/manage sysboot"
echo "0 3 * * * logrotate $INSTALLATION_DIR/$DMWM_GIT_TAG/sw/cms/dqmgui/$DQMGUI_GIT_TAG/128/etc/logrotate.conf"
echo "0 3 * * * logrotate $INSTALLATION_DIR/$DMWM_GIT_TAG/sw/cms/dqmgui/$DQMGUI_GIT_TAG/128/etc/logrotate.conf --state $INSTALLATION_DIR/state/logrotate.state"
) | crontab -
}

Expand Down Expand Up @@ -291,7 +291,7 @@ _create_logrotate_conf() {
echo "# DQMGUI logrotate configuration file
# Automagically generated, please do not edit.
$INSTALLATION_DIR/state/dqmgui/*/logs/*.log {
$INSTALLATION_DIR/logs/dqmgui/*/*.log {
compress
rotate -1
daily
Expand Down

0 comments on commit 8e83565

Please sign in to comment.