Skip to content

Commit 79a1672

Browse files
committed
Crontab fixes
1 parent b8ff271 commit 79a1672

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

deploy_dqmgui.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ check_dependencies() {
116116
clean_crontab() {
117117
# Filter cronjobs starting in $INSTALLATION_DIR/current/dqmgui and
118118
# replace crontabs
119-
crontab -l 2>/dev/null | grep -v "$INSTALLATION_DIR/current/config/dqmgui" | grep -vE "$INSTALLATION_DIR/current.+logrotate.conf" | crontab -
119+
crontab -l 2>/dev/null | grep -v "HOME=/tmp" | grep -v "$INSTALLATION_DIR/current/config/dqmgui" | grep -vE "$INSTALLATION_DIR/current.+logrotate.conf" | crontab -
120120
}
121121

122122
# Install DQMGUI cronjobs
@@ -126,8 +126,9 @@ install_crontab() {
126126
(
127127
crontab -l # Get existing crontabs
128128
echo "17 2 * * * $INSTALLATION_DIR/current/config/dqmgui/daily"
129-
echo "@reboot $INSTALLATION_DIR/current/config/dqmgui/manage sysboot"
130129
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"
130+
echo "HOME=/tmp" # Workaround for P5, where the home dir is an NFS mount and isn't immediately available.
131+
echo "@reboot (sleep 30 && $INSTALLATION_DIR/current/config/dqmgui/manage sysboot)"
131132
) | crontab -
132133
}
133134

0 commit comments

Comments
 (0)