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.

How can I schedule a clean shutdown.

Featured Replies

How can I schedule a clean shutdown of my server at the end of the day?

Can I add just a line to the go file?

 

Do I need to install any apps for this?

  • Community Expert

User Scripts plugin

You can also do it remotely via Plink (part of the Putty download).

 

I have the following line in my automated .CMD file that runs on a scheduled basis in Windows:

 

S:\Downloads\Putty\Plink.exe -ssh -pw <my password> root@<server name> powerdown

 

[My .CMD file turns on the server via WOL, waits 2 minutes, does a set of backups, and then powers down the server.]

 

 

 

  • 3 weeks later...
  • Author

User Scripts plugin

 

I added this plugin

 

But how and where should I add which line. What should it contain to powerdown down at 01:00 for instance?

 

Can't just a simple line be added to the go file?

  • Community Expert

User Scripts plugin

 

I added this plugin

 

But how and where should I add which line. What should it contain to powerdown down at 01:00 for instance?

 

Can't just a simple line be added to the go file?

Did you read the User Scripts thread?
  • Author

yes,

 

can I just add something like echo "powerdown" | at 02:00 to a scripts file in the config/plugins/user.scripts/scripts folder?

 

  • Community Expert

The ability to schedule a script is builtin to the plugin

make a folder within /boot/config/plugins/user.scripts/scripts called "Scheduled PowerDown"

 

make a file within there called "script"

 

contents of the file would be

 

#description=This will powerdown the server
powerdown

 

Then within user script's UI, set a custom cron schedule for it to be * 2 * * *

  • Author

make a folder within /boot/config/plugins/user.scripts/scripts called "Scheduled PowerDown"

 

make a file within there called "script"

 

contents of the file would be

 

#description=This will powerdown the server
powerdown

 

Then within user script's UI, set a custom cron schedule for it to be * 2 * * *

 

Thanks, what exactly does * 2 * * do?

How do I change the time at which the server powers down?

 

 

 

 

  • Community Expert

what exactly does * 2 * * do?

Tells it when to run the script. Try it and the page will tell you what it means and you can figure out how to set it differently.
  • Author

Did as instructed and created the script file in the scheduled powerdoen folder.

 

But don't see where I can set the * 2 * *.

 

I see the Apply Done and How to add scripts button but nothing else.

  • Author

Did you set the schedule to be custom?

 

Gess not, how?

Check for updates to user scripts

 

Sent from my LG-D852 using Tapatalk

 

 

  • Author

This plugin seems to have brought the UI to a crawl, it took ages to switch from tab to tab, dashboard main, settings etc.

 

Deleting the plugin from flash brought my system back to normal.

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.