May 7, 20251 yr 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 May 8, 20251 yr by French-Guy
May 7, 20251 yr Author 1 hour ago, JorgeB said: You can use the user scripts plugin. And what should be the script exactly?
May 7, 20251 yr Community Expert #!/bin/bash /usr/local/sbin/powerdown Then schedule it for the time you want
May 7, 20251 yr 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?
May 7, 20251 yr 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 May 7, 20251 yr by strike
May 8, 20251 yr 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 ?
May 8, 20251 yr 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.
May 8, 20251 yr 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?
May 8, 20251 yr 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 Edited May 8, 20251 yr by French-Guy
May 9, 20251 yr 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
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.