Unraid Server 2x am Tag wecken


n3ro365

Recommended Posts

Hallo.

Ich hab einen Server, der die meiste Zeit am Tag schläft und eigentlich nur manuell geweckt wird, wenn er gebraucht wird.

Einmal am Tag wird er automatisch folgendermaßen geweckt, um Uptates usw zu machen (über die Sleep settings):

echo 0 > /sys/class/rtc/rtc0/wakealarm

time=8:00
now=$(date +%s)
other=$(date -d $time +%s)
if [ $now -ge $other  ]
then
	echo `date '+%s' --date='tomorrow 8:00:00'` > /sys/class/rtc/rtc0/wakealarm
else
    echo `date '+%s' --date='today 8:00:00'` > /sys/class/rtc/rtc0/wakealarm
fi

 

Besteht denn auch die Möglichkeit, den Server 2x am Tag so zu wecken? Beispiel 8 Uhr und 20 Uhr. Oder hat jemand andere Ideen für diesen Fall?

 

Danke für eure Hilfe.

Link to comment
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.