Run dehydrated cronjob at random time.
This commit is contained in:
parent
ac00e3ed38
commit
8a8920529e
1 changed files with 4 additions and 5 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# 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.
|
( # Delay the run for 15 hours (from midnight) and then run at a random time within 3 hours after that.
|
||||||
sleep $(( 54000 + (RANDOM % 10800) ))
|
sleep $(( 54000 + (RANDOM % 10800) ))
|
||||||
|
/opt/sbin/dehydrated -c >/dev/null ) &
|
||||||
/usr/sbin/dehydrated -c >/dev/null
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue