Loading templates/etc/cron.daily/patchman-client.erb +3 −2 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ # Sleep between 5 and 90 minutes before running to avoid "herding": SLEEP_MINUTES=$(/usr/bin/shuf -i 5-90 -n 1) SLEEP_SECONDS=$((60 * $SLEEP_MINUTES)) sleep $SLEEP_SECONDS patchman-client -c <%= @patchman_conf_path %> -s https://<%= @patchman_server %>/patchman # Since we can sleep up to 90 minutes, we put the command in the background so it # does not block any other cron jobs. sleep $SLEEP_SECONDS && patchman-client -c <%= @patchman_conf_path %> -s https://<%= @patchman_server %>/patchman & Loading
templates/etc/cron.daily/patchman-client.erb +3 −2 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ # Sleep between 5 and 90 minutes before running to avoid "herding": SLEEP_MINUTES=$(/usr/bin/shuf -i 5-90 -n 1) SLEEP_SECONDS=$((60 * $SLEEP_MINUTES)) sleep $SLEEP_SECONDS patchman-client -c <%= @patchman_conf_path %> -s https://<%= @patchman_server %>/patchman # Since we can sleep up to 90 minutes, we put the command in the background so it # does not block any other cron jobs. sleep $SLEEP_SECONDS && patchman-client -c <%= @patchman_conf_path %> -s https://<%= @patchman_server %>/patchman &