October 2Oct 2 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
October 2Oct 2 Solution You can use the User Scripts plugin to run a script at a specified time daily containing the command:shutdown -h nowI 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.
October 2Oct 2 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?
October 2Oct 2 49 minutes ago, AlbeT10 said:to write the correct scriptThe script is the one liner inposted
October 19Oct 19 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.