Skip to content

Commit 8e83565

Browse files
committed
Fix logrotate cron & config
1 parent dc0cc77 commit 8e83565

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deploy_dqmgui.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ install_crontab() {
131131
crontab -l # Get existing crontabs
132132
echo "17 2 * * * $INSTALLATION_DIR/current/config/dqmgui/daily"
133133
echo "@reboot $INSTALLATION_DIR/current/config/dqmgui/manage sysboot"
134-
echo "0 3 * * * logrotate $INSTALLATION_DIR/$DMWM_GIT_TAG/sw/cms/dqmgui/$DQMGUI_GIT_TAG/128/etc/logrotate.conf"
134+
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"
135135
) | crontab -
136136
}
137137

@@ -291,7 +291,7 @@ _create_logrotate_conf() {
291291
echo "# DQMGUI logrotate configuration file
292292
# Automagically generated, please do not edit.
293293
294-
$INSTALLATION_DIR/state/dqmgui/*/logs/*.log {
294+
$INSTALLATION_DIR/logs/dqmgui/*/*.log {
295295
compress
296296
rotate -1
297297
daily

0 commit comments

Comments
 (0)