Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have a Mac used as a test server and it restarts daily automatically. Occasionally we connect to it to grab files, but if we forget to disconnect, the Mac fails to restart because it waits for confirmation for this dialog:

Imgur

"There is a user sharing this computer. If you restart they will be disconnected."

Is there a way to disable this confirmation and make sure the Mac always restarts regardless of who is connected?

share|improve this question
    
How do you trigger the automatic daily restart? –  Daniel Lawson Dec 23 '12 at 21:19
    
@DanielLawson System Preferences -> Energy Saver -> Schedule –  a paid nerd Dec 23 '12 at 23:22
    
What about creating an automator task that fires when the window opens, and all it does is hit restart? –  Everett Dec 24 '12 at 2:53

1 Answer 1

up vote 1 down vote accepted

You could use launchd to execute /sbin/shutdown -r now as root at the time you want to restart.

I'm not able to expand this into step-by-step directions right now, but this might be helpful and if you don't get a more thorough answer first, I can come back and expand this hint in a fuller set of directions later this week.

share|improve this answer
    
Thanks! I'll give it a try. –  a paid nerd Dec 24 '12 at 6:45
1  
Yep, works like a charm. Thanks again! –  a paid nerd Dec 24 '12 at 18:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.