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.

Scheduled shutdown

Featured Replies

Hello

I've been using this in my go file for many years and it has always worked fine:

#!/bin/bash
# Start the Management Utility
/usr/local/sbin/emhttp 
echo "/usr/local/sbin/powerdown" | at 1:00 am > /dev/null 2>&1

 

But after I updated to V7.1.0 yesterday, I realized my server was still on this morning

Do you know what I should change to properly shut down my server at a specific time, every day?

Edited by French-Guy

  • Community Expert

You can use the user scripts plugin.

  • Author
1 hour ago, JorgeB said:

You can use the user scripts plugin.

And what should be the script exactly?

  • Community Expert
#!/bin/bash
/usr/local/sbin/powerdown

 

Then schedule it for the time you want

  • Author
3 hours ago, JorgeB said:
#!/bin/bash
/usr/local/sbin/powerdown

 

Then schedule it for the time you want

Sory for my ignorance, but I created the script and I see I can run it daily
But how do I setup the time?

  • Community Expert
21 minutes ago, French-Guy said:

Sory for my ignorance, but I created the script and I see I can run it daily
But how do I setup the time?

Set it to custom and use this to find the correct crontab value: https://crontab.guru/#00_00_*_*_1
Or change the daily time in settings-Scheduler-Fixed Schedules. This will change the time for all tasks (except custom) that run daily., if any.

Edited by strike

  • Author
2 hours ago, strike said:

Set it to custom and use this to find the correct crontab value: https://crontab.guru/#00_00_*_*_1
Or change the daily time in settings-Scheduler-Fixed Schedules. This will change the time for all tasks (except custom) that run daily., if any.

Looks like 0 1 * * * mean 01:00 every day of the week

What's the difference between "run script" and "Run in background"?

It seems Run script is shutting down the server immediately, then I assume Run in background will shutdown at the specified time ?

 

  • Community Expert
6 hours ago, French-Guy said:

then I assume Run in background will shutdown at the specified time ?

No, it will also run it immediately, just set the schedule and wait.

  • Author

Well, it didn't work. The server was still on this morning

By the way, why the script in the go file doesn't work anymore after the update to the new version v7.1.0?

  • Community Expert

Post a screenshot from the user scripts plugin page.

  • Author

This is what I have

But I think I forgot to click on "Apply" then "Done" yesterday, so will see tonight (tomorrow morning actually) how it works 

script.thumb.JPG.f46d3c5720f860b1d0094fb32e909817.JPG

 

script.JPG

script 2.JPG

Edited by French-Guy

  • Author

Looks like it works.....I can't guarantee it shutdown at 1:00am, but it was off this morning

What should I do with the go file? Keep it as is or completely delete it?

Thank you

  • Community Expert

Leave it stock, i.e., remove the last line only.

 

 

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

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.