May 7, 201511 yr I have ver. 6.0beta15 working. Is there a shutdown script to automatically and safely powerdown the system at say 02:00 am. attached is a copy of my "Go" file that worked under v5.0 (when I had UnMenu running) thanks go.zip
May 7, 201511 yr 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...
May 7, 201511 yr Author 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
May 8, 201511 yr Community Expert 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.
May 8, 201511 yr Author Trurl could you write a and example to try, and where I should put it. thanks
May 8, 201511 yr Community Expert Trurl could you write a and example to try, and where I should put it. thanks Search the powerdown plugin thread. Do a google search on cron, it is built in to every linux. The go file is a script on your flash drive that gets executed on bootup.
May 8, 201511 yr Community Expert 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.
May 8, 201511 yr Trurl could you write a and example to try, and where I should put it. thanks You might be able to use some information from here: https://lime-technology.com/forum/index.php?topic=38554.msg358683#msg358683 This thread describes a backup scenario but it is using a Cron Job that is similar to what you could do so have a look on that part.
May 8, 201511 yr Community Expert If you get something going be sure to share by posting your solution.
May 8, 201511 yr ... 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.
May 8, 201511 yr ... 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.
May 9, 201511 yr Author 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
May 10, 201511 yr 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.
Archived
This topic is now archived and is closed to further replies.