splay is not numeric any more

This commit is contained in:
Udo Waechter
2015-01-13 17:26:17 +01:00
parent 340bdf611c
commit 9fdfc7cf76
3 changed files with 13 additions and 13 deletions

View File

@@ -53,7 +53,7 @@ if [ ${ISUNIIP} -gt 0 ]; then
fi
fi
MAXSLEEP=<%= @maxsleep %> #How many seconds to wait maximally
#MAXSLEEP=<%= @maxsleep %> #How many seconds to wait maximally
SLEEP=${RANDOM}
I=${RANDOM}
@@ -63,7 +63,7 @@ if [ ${ISUNIIP} -gt 0 ]; then
SLEEP=${RANDOM}
done
# wait maximally $MAXSLEEP seconds
sleep $(expr ${SLEEP} % ${MAXSLEEP})
#sleep $(expr ${SLEEP} % ${MAXSLEEP})
# run puppetd
nice -n 12 $PUPPET agent -t 2&>>/var/log/puppet/puppetd_run.log
fi