Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Power down at a certain time?

Featured Replies

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

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...

 

  • 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

  • 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.

  • Author

Trurl could you write a and example to try, and where I should put it.

 

thanks

 

 

  • 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.
  • 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.

  • Community Expert

If you get something going be sure to share by posting your solution.

... 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.

 

... 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.

 

  • 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

 

 

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.