I want to schedule a nightly restart of my OSX media server, but I routinely have other machines in the house connected to this machine remotely (since it's also our TimeMachine system, iTunes library, etc.)
It's trivial to set a scheduled restart, but it always fails if other users are connected, which in my case they always are.
How can I schedule a nightly restart of this machine, that will automatically kick any connected users, quit all apps, and restart?
Also, what effect will this have on the formerly-connected applications like iTunes, TimeMachine, etc.? Will they simply see the machine again after restart and resume operations? Or will it cause them to get into a bad state?