Scheduled Sleep


Recommended Posts

Since the electric rate as doubled i am trying to make my server either sleep or shutdown at a certain time and then the bios will wake it back up.  I have tried the S3 sleep plugin but i want to specify a time for it to shutdown or sleep.

 

first of all what are the commands to shut down and sleep?

secondly what can i use to schedule these?

 

Appriciate any help as going to cost me £80 a month to run just my server which i cannot affoard.  If i could shut down at midnight and wake it back up at 7am would save at least £30 a month.

  • Like 1
Link to comment

To put the system to sleep, set up a user script with the following set to run at a certain time

 

#!/bin/bash
echo -n mem >/sys/power/state

 

The drive spun up/down status however might be incorrect, so it would be wise to run this script before putting the system to sleep: https://forums.unraid.net/topic/103621-spin-up-script-not-working-since-update-69/page/2/?tab=comments#comment-963255

 

Link to comment

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.