Skip to main content
Question

Script Testing Causing Issues With Mac

  • April 25, 2018
  • 12 replies
  • 16 views

Forum|alt.badge.img+6

Hello everyone, I did some testing with a few scripts the other week. I have a couple post here explaining what I needed. I noticed that my computer is now restarting every day at the same time. I have deleted several scripts that I tested. I have no idea whats causing this. Does anyone know how I can troubleshoot this?. Also, my previous post are still open for input.

12 replies

Forum|alt.badge.img
  • New Contributor
  • 1 reply
  • April 25, 2018

I'm not sure exactly what you have done but one of the scripts had a reboot plist in it, do you have anything like that under /Library/LaunchDaemons/ ?


Forum|alt.badge.img+26
  • Valued Contributor
  • 909 replies
  • April 25, 2018

Also if you did any tests in your script using the 'pmset' command or 'systemsetup' command, pay close attention to your energy saver settings. You can set a shutdown/reboot schedule with those commands. Look specifically at the Schedule... button in the GUI on your energy saver settings.


Forum|alt.badge.img+6
  • Author
  • Contributor
  • 79 replies
  • April 25, 2018

Would this be it?


Forum|alt.badge.img+26
  • Valued Contributor
  • 909 replies
  • April 25, 2018

Yup... you are issuing a reboot command with that launchd job


Forum|alt.badge.img+6
  • Author
  • Contributor
  • 79 replies
  • April 25, 2018

how do I stop this?


Forum|alt.badge.img+26
  • Valued Contributor
  • 909 replies
  • April 25, 2018

I would need the exact path and name of the file you found but it should go something like this

“launchctl unload /<your file location>/org.your.rebootdelay.plist”

The file name was taken from the plist file you attached. If it is in LaunchDaemons you may need to run with sudo


Forum|alt.badge.img+6
  • Author
  • Contributor
  • 79 replies
  • April 25, 2018

Is it also suitable to delete the file?


Forum|alt.badge.img+26
  • Valued Contributor
  • 909 replies
  • April 25, 2018

Once you’ve unloaded, yes


Forum|alt.badge.img+6
  • Author
  • Contributor
  • 79 replies
  • April 25, 2018


Forum|alt.badge.img+26
  • Valued Contributor
  • 909 replies
  • April 25, 2018

Try without .plist


Forum|alt.badge.img+6
  • Author
  • Contributor
  • 79 replies
  • April 25, 2018


Forum|alt.badge.img+26
  • Valued Contributor
  • 909 replies
  • April 25, 2018

You can delete the file and reboot, but shouldn't be necessary...I saw the label in your plist above but could I see the actual file in a Finder window...maybe it's named something differently than org.your.rebootdelay.plist