![]() ![]() Note: Once you renamed the reboot and shutdown commands the Apple menu's Reboot.Sudo mv /sbin/shutdown /sbin/shutdown.ori You can rename the reboot and shutdown commands in: /sbinĮxample in a Terminal: sudo mv /sbin/reboot /sbin/reboot.ori That said, I give you a workaround that you certainly can test and it should prevent a software call to reboot/shutdown however if the reboot/shutdown is being caused by a hardware issue then this will not work. My suggestion, despite you editing out the issue in your OP, is to fix the issue and not look for a workaround! There may be a piece of commercial software that can intercept a call to reboot/shutdown however I do not know what it is, if it exists. I hope this answer helps anyone out there who wants their computer staying on! I use automator to run this script with sudo, in an open terminal window on every startup/login. Press or shutdown this terminal to disable and allow automatic reboot." I created a bash-script that I saved on the desktop containing the following code:Įcho "This BASH-Script prevents automatic reboot of this computer. On demand, I can easily shutdown or reboot the computer using the standard GUI. I am currently using the following solution, which ensures computer stays on for on average 30 days (without any user input, longer if periodically logged into and doing stuff), while still allowing the computer to run screensaver, log out the user, and going into power-saving mode. To my knowledge there is no way to completely prevent a reboot of OSX for more than about three months. However sadly, after a while if no user input is given, the computer will still shutdown/reboot. If the OS gets a shutdown/reboot command it will get intercepted, and a user prompt pops up. Simply put Apple wants YOU to always update your mac! IMHO, It's actually a serious issue that apple doesn't want to allow you to be truly in control of your own computers' behavior. And yes, this despite turning off all settings pertaining to automatic updates in the osx settings. Is in 99% of the cases the the os wants to update itself, or system apps. I've tried various quick fixes and solutions over the years, none of which have been completely bulletproof, or simply not viable for other reasons. I've been trying to accomplish this for quite some time now. ![]()
0 Comments
Leave a Reply. |