File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ check_dependencies() {
116
116
clean_crontab () {
117
117
# Filter cronjobs starting in $INSTALLATION_DIR/current/dqmgui and
118
118
# 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 -
120
120
}
121
121
122
122
# Install DQMGUI cronjobs
@@ -126,8 +126,9 @@ install_crontab() {
126
126
(
127
127
crontab -l # Get existing crontabs
128
128
echo " 17 2 * * * $INSTALLATION_DIR /current/config/dqmgui/daily"
129
- echo " @reboot $INSTALLATION_DIR /current/config/dqmgui/manage sysboot"
130
129
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)"
131
132
) | crontab -
132
133
}
133
134
You can’t perform that action at this time.
0 commit comments