diff --git a/cronjob-dehydrated b/cronjob-dehydrated index ec31e99..7afa21c 100755 --- a/cronjob-dehydrated +++ b/cronjob-dehydrated @@ -1,6 +1,5 @@ #!/bin/bash - -# Delay the run for 15 hours (from midnight) and then run at a random time within 3 hours after that. -sleep $(( 54000 + (RANDOM % 10800) )) - -/usr/sbin/dehydrated -c >/dev/null +# Run this job in the background. +( # Delay the run for 15 hours (from midnight) and then run at a random time within 3 hours after that. + sleep $(( 54000 + (RANDOM % 10800) )) + /opt/sbin/dehydrated -c >/dev/null ) &