modules/*/reboot: reduce window from 6 to 3 hours
This commit is contained in:
parent
eaf745de2a
commit
5cb6b93100
2 changed files with 4 additions and 4 deletions
modules/darwin/common
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
# reboot every sunday between 00:00 and 06:00
|
||||
# reboot every sunday between 00:00 and 03:00
|
||||
launchd.daemons.reboot = {
|
||||
script = ''
|
||||
date
|
||||
/sbin/shutdown -r "+$(( $RANDOM % ( 6 * 60 ) ))"
|
||||
/sbin/shutdown -r "+$(( $RANDOM % ( 3 * 60 ) ))"
|
||||
'';
|
||||
serviceConfig = {
|
||||
StartCalendarInterval = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue