Start the dehydrated-wrapper with daemon.

This commit is contained in:
Darren 'Tadgy' Austin 2026-05-27 15:37:41 +01:00
commit 178507e3f6

View file

@ -1,6 +1,4 @@
#!/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.
sleep $(( 54000 + (RANDOM % 10800) ))
/opt/sbin/dehydrated -c >/dev/null ) &
daemon /opt/sbin/dehydrated-wrapper