Walter S Posted May 7, 2015 Share Posted May 7, 2015 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 Quote Link to comment
Leifgg Posted May 7, 2015 Share Posted May 7, 2015 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... Quote Link to comment
Walter S Posted May 7, 2015 Author Share Posted May 7, 2015 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 Quote Link to comment
trurl Posted May 8, 2015 Share Posted May 8, 2015 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. Quote Link to comment
Walter S Posted May 8, 2015 Author Share Posted May 8, 2015 Trurl could you write a and example to try, and where I should put it. thanks Quote Link to comment
trurl Posted May 8, 2015 Share Posted May 8, 2015 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. Quote Link to comment
trurl Posted May 8, 2015 Share Posted May 8, 2015 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. Quote Link to comment
Leifgg Posted May 8, 2015 Share Posted May 8, 2015 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. Quote Link to comment
trurl Posted May 8, 2015 Share Posted May 8, 2015 If you get something going be sure to share by posting your solution. Quote Link to comment
garycase Posted May 8, 2015 Share Posted May 8, 2015 ... 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. Quote Link to comment
garycase Posted May 8, 2015 Share Posted May 8, 2015 ... 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. Quote Link to comment
Walter S Posted May 9, 2015 Author Share Posted May 9, 2015 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 Quote Link to comment
RobJ Posted May 10, 2015 Share Posted May 10, 2015 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. Quote Link to comment
Recommended Posts
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.