Re: How can a Mac be friendly restarted?
Re: How can a Mac be friendly restarted?
- Subject: Re: How can a Mac be friendly restarted?
- From: Alastair Houghton <email@hidden>
- Date: Tue, 20 Jul 2010 18:27:47 +0100
On 20 Jul 2010, at 16:54, Stéphane Sudre wrote:
> What is the recommended way to friendly restart (or request to restart) the Mac when there is _no_ active Aqua session?
>
> This would be done from a launchd daemon.
>
> A violent solution could be to perform a shutdown -r now ...
>
> I don't think you can send an AppleEvent to the System process from a launchd daemon.
One thing to watch out for is that shutting machines down can mess up the battery hardware on the newer Xserve RAID cards. (Yes, you read that right.)
This happens if the battery system is in its "conditioning" phase (which happens every few months, automatically), and there is **no warning** about this for users operating from non-GUI sessions. I filed a bug report about this, which was closed for no particularly obvious or good reason.
The only way to test for this is to run the raidutil tool and check the output to see if the battery is conditioning.
(This stupidity is *particularly* clever, I've found in conjunction with software updates, since the latter often requires a reboot, but if your RAID battery is conditioning at the time, it can become quite upset and insist on running with the cache turned off. The only general solution is to replace the RAID battery, which on the newer Xserves is quite an exercise... It is also especially intelligent behaviour if you're attached to a UPS and the power fails, since it's clearly more important to "condition" the battery at that point than it is to shut the server down gracefully. But I digress...)
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden