Power down at a certain time?


Recommended Posts

One idea is to create a Cron Job that runs the Powerdown script at a specific time at specified intervals. Note that if you have other tasks running at this time like the Mover or any other activity these will be interrupted.

I haven’t tested this myself so let’s see if somebody else has some more ideas...

 

Link to comment

Gee, I have been reading about plugins/templeats/dockers all day looking for anything where I might be able to properly "Power Down" my system at a certain time like for example 02:00am. 

I would like to move to version 6 (which has a lot of great additions) but I like having my system automatically power-down at 2:00am.

 

Please somebody point me in the right directions that a advanced novice can understand..

 

thanks

Link to comment

Gee, I have been reading about plugins/templeats/dockers all day looking for anything where I might be able to properly "Power Down" my system at a certain time like for example 02:00am. 

I would like to move to version 6 (which has a lot of great additions) but I like having my system automatically power-down at 2:00am.

 

Please somebody point me in the right directions that a advanced novice can understand..

 

thanks

Pointing, but since I haven't done it myself I'll leave the research to you.

 

The powerdown plugin can be scripted, and you can use your go file to add a cron entry to schedule a script.

Link to comment

I will spell out some more details that I already know without doing any research. The powerdown plugin installs a script that you can call directly from the command line. I think if you just enter powerdown from the command line it will do it.

 

In the go file, you can put a line that will put this command into cron. I will let you research cron yourself since I don't know that part myself without doing some research.

Link to comment

... I think if you just enter powerdown from the command line it will do it.

 

That's correct.  If powerdown is installed, that's all you have to do to shut down the system => it's exactly the same as if you had a power failure and the UPS control software invoked that script.

 

So all you need for a timed shutdown is a Cron job that runs that command.

 

The potential problem I see with this is that if anything else is going on at that time [streaming a movie; mover running; etc.]  it would be interrupted by the shutdown.    It'd be nice if there was a simple script to test "Is anything going on right now?" ... but I'm not sure how complex that is in Linux.

 

Link to comment

... thinking a bit more about that, the more "stuff" you have in your system [Dockers, add-ons, etc.] the more likely it would seem that there may be activity going on that you may not want to be abruptly terminated.

 

So you clearly need to be judicious in setting the time you want the system to shut down; and be sure you don't have other timed activities that are likely to be ongoing at that time.

 

Link to comment

I found it, You need to download the Powerdown plugin package.  The next thing is put the below line in the "go file".

 

echo "/sbin/powerdown" | at 02:00

 

 

 

I found the plugin file here=https://github.com/dlandon/unraid-snap/raw/master/powerdown-x86_64.plg

 

Thanks dlandon

 

 

Link to comment

You need to download the Powerdown plugin package.  The next thing is put the below line in the "go file".

 

echo "/sbin/powerdown" | at 02:00

 

I found the plugin file here=https://github.com/dlandon/unraid-snap/raw/master/powerdown-x86_64.plg

 

Thanks dlandon

 

In unRAID v6, you don't actually download plugins, you install the plugin by inserting the URL of the '.plg' file into the box on the Install Plugins page.

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.