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.

schedule startup and shutdown

Featured Replies

For family reasons, I must stop the server during nightime and hence start it back the next day before leaving home.

Is it possible to schedule these activities?

I think the BIOS allows a Wake-on-Lan if this can widen the possibilities.

Another problem I can see is that shutdown (I think it will be a script) should check if anything is working before running itself.

Any help is appreciated

Solved by itimpi

  • Solution

You can use the User Scripts plugin to run a script at a specified time daily containing the command:

shutdown -h now

I have that set on my system as simply shutting down the server around midnight and restarting after I get up in the morning (i.e. wen nobody will be using the server) saves me about £120 per year in electricity charges.

In terms of starting it back up there is typically a BIOS setting for this (at least on my system) where you can specify the time for starting back up. If you do not have that setting then using the 'Wake on Lan' option is an alternative.

If you are shutting down every night then you might want to consider installing the Parity Check Tuning plugin so that any long-running array operations (e.g. Parity Check) can be resumed from the point they reached just before the shutdown. The standard Unraid system would restart such operations from the start, but the plugin (assuming you have specified it in the plugin settings) can continue them from point reached.

  • Author

many thanks!

Now I know it can be done and I only have to figure out how to write the correct script: do you mind if I catch you later for advise?

49 minutes ago, AlbeT10 said:

to write the correct script

The script is the one liner inposted

  • 3 weeks later...
  • Author

Hi!

After some time I could test the script and it worked correctly although I expanded it with the help of Claude to include a startup the morning after and some checks to prevent unwanted shutdowns.

Thanks again!

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.