Compare commits
2 commits
8c2d848935
...
bb74a4e7bf
| Author | SHA1 | Date | |
|---|---|---|---|
| bb74a4e7bf | |||
| 178507e3f6 |
2 changed files with 7 additions and 4 deletions
|
|
@ -1,6 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Run dehydrated after a delay.
|
# Start the dehydrated-wrapper as a daemon, so that it doesn't prevent other cron jobs from running.
|
||||||
|
|
||||||
( # Delay the run for 15 hours (from midnight) and then run at a random time within 3 hours after that.
|
daemon /opt/sbin/dehydrated-wrapper
|
||||||
sleep $(( 54000 + (RANDOM % 10800) ))
|
|
||||||
/opt/sbin/dehydrated -c >/dev/null ) &
|
|
||||||
|
|
|
||||||
5
dehydrated-wrapper
Executable file
5
dehydrated-wrapper
Executable file
|
|
@ -0,0 +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) ))
|
||||||
|
/opt/sbin/dehydrated -c >/dev/null
|
||||||
Loading…
Add table
Add a link
Reference in a new issue