Power button - orderly shutdown instead of sleep?

Howdy,
We recently had a power outage in our office, and although our servers are all on UPSes, we reached the end of the batteries and had to shutdown the machines. Some were Linux, some were Windows, some were Mac Xserves. The only servers that wouldn't perform an orderly shutdown when the power button was pressed were the Xserves.
I know that you can make the machine go to sleep when you press the power button, but that's not quite enough for us. We actually want the Xserve to shut down completely. Can this be done? I'd appreciate it if someone could enlighten me.
All the best,
Jeff Kirk

Assuming the Xserves are attached to an appropriate UPS each this is easy.
Make sure the UPSes and Xserves are connected by either UPS or serial cables and go to System Preferences > Energy Saver. Switch the pop-up at the top to UPS and you should get a series of things you can select from to turn off your computer in an orderly fashion - by time on UPS power, time left etc.
Note this is taken from a 10.4 install but 10.5 should be similar. If your machine doesn't acknowledge the UPS that means that they're not communicating. If the Xserves share a UPS then you're on your own for scripting some solution where the one connected to the UPS tells the others to shut down.
HTH,
=Tod

Similar Messages

  • Make power button restart Imac Instead of sleep

    When I press the power button on my Imac, It puts the computer in sleep mode automatically. Is there a way to change this to Shutdown or Restart or a menu of options?
    Thanks

    The best use of the Power button is to turn your Mac on if it is off! The second best use is to configure it to sleep your Mac with a short press of the button.
    There is no way in Mac OS X to configure the button to present you with a contextual menu of which I am aware. Nor do I know of a 3rd party app to do this.
    The power button will power down (turn off) your Mac at any time. But it will not do it immediately because it is a bad idea to power down this way and should only be used as a last resort in an emergency. To power down you must press and hold the button until the Mac powers down.
    Powering down this way is an improper way to turn off the Mac. It can cause damage to your hard disk's directory. Done often enough, the resulting damage could cause significant loss of data and require a lot of work to reclaim/regain the use of the hard drive.

  • HT201150 The allow power button to put computer to sleep is missing in the preferences on my MB Air?

    The allow power button to put computer to sleep is missing in the preferences on my MB Air?
    I have the funtion but no way to turn it off?

    "Allow power button to put the computer...: Apple Support Communities
    uptalk - definition of uptalk by the Free Online Dictionary, Thesaurus and Encyclopedia.

  • I've installed Mavericks on my Mac Pro. It works well, generally, but will not stay sleeping! Pressing the power button twice sometimes extends the sleep mode but even that seldom results in a full overnight sleep.  File sharing off. What else can help?

    I've installed Mavericks on my Mac Pro. It works well, generally, but will not stay asleep! Pressing the power button twice sometimes extends the sleep mode but even that seldom results in a full overnight sleep.  File sharing off. What else can help?

    Hi fremley,
    Thanks for visiting Apple Support Communities.
    This article may be helpful with determining why your Mac Pro doesn't stay in sleep mode:
    Mac OS X: Why your Mac might not sleep or stay in sleep mode
    http://support.apple.com/kb/HT1776
    Some things reset the sleep timers, preventing the computer from sleeping:
    Hard drive access (even if you're not using the computer, a running application might be accessing your drive, such as when downloading a large file or listening to music in iTunes)
    Moving the mouse or using a portable Mac's trackpad, pressing a mouse button, or pressing a key on the keyboard
    Some System Preferences settings (see below)
    Open applications (see below)
    Input devices (see below)
    Expansion cards (see below)
    Additional drives, such as USB, FireWire, DVD, or CD drives (see below)
    Best Regards,
    Jeremy

  • Press power button once - MBP goes to sleep, Shift-Control-Media Eject (⏏) doesn't.

    Hello, i've read here http://hints.macworld.com/article.php?story=20131025154203251 and somewhere else, that in Mavericks, pressing the Power Button once, puts your screen to sleep.
    But after reading here http://support.apple.com/kb/HT5869 seems that it doesn't.
    I also noticed that by pressing it once, your mac goes to sleep, but not immediatly.
    So is the only way to put only the screen to sleep is by using Shift-Control-Media Eject (⏏) ?
    Thank you

    @speleofool Thanks for posting and congratulations on the new device! The Nexus is a great phone! Regarding your issue about waking up, this is very odd for a new device. I did some research and it seems this is not a known issue with the phone. I would recommend doing the following steps:
    Settings>Apps>Choose all Apps>choose System UI>clear data>force stop.
    This will stop your screen from freezing and wake up when it should. I would make it a practice to clear data from apps that give you trouble. I hoped this helps. Thanks.
    SammuelP_VZW
    VZW Support
    Follow us on Twitter @VZWSupport

  • Why won't my Power Button allow the iMac to sleep anymore?

    When trying to make the imac sleep, the power button no longer works to allow me to do that? Can i ask if anyone had the same issue and has fixed it? I did the SMC thing but It still wont go to sleep.
    Thanks

    If none of that helps, it could be your power button needs fixing.  Mind you, I don't like using the power button, since it can just as easily accidently act like you are powering down without saving anything, create a scenario where your directory may get damaged.

  • Can power button put computer direct to sleep w/o dialog box?

    Even if you need to install some third-party thing, is it possible?

    The older Apple Studio Displays did this, but when the new cinema displays came out (and changed from an ACD to a DVI connection) that functionality was lost. The easiest way to sleep your mac is to either press the power button on the mac itself or the keyboard shortcut malcolm suggested.

  • It said Hold Down Power Button Upon Shutdown

    Hi.I have the late iMac 2009 with 8GB and the latest OS X . The memories were installed by Apple. I've had this since March 2010. I don't leave it 24 hours ON or any. I have Boot Camp at 80GB For the first time when I shut it down it said hold the power for 4 seconds. It looked like a hardware error. Is it normal from time to time? Is it the Seagate hard drive or the memory? What can I use to test this iMac if it's OS and components are all good? Please advice. Thank you in advance.
    Gbu.

    Alvin777 wrote:
    when I shut it down it said hold the power for 4 seconds.
    if it looked like this ...
    you've see a *kernel panic*
    read all about KP's here _*Resolving Kernel Panics*_ and here _*http://support.apple.com/kb/HT2546*_. for OS X 10.6 specifically, see this: http://docs.info.apple.com/article.html?path=Mac/10.6/en/8965.html.
    also
    _*What is a kernel panic*_,
    _*Technical Note TN2063: Understanding and Debugging Kernel Panics*_,
    _*Mac OS X Kernel Panic FAQ*_,
    and
    _*Tutorial: Avoiding and eliminating Kernel panics*_
    JGG

  • Power-button is not working properly anymore. It is causing sleep mode!

    Hey all!
    I have a MacBook Pro Retina 15 inch, which is one year old. Lately I am experiencing a strange problem.
    I cannot shut the mac down by pressing the power button. Usually the windon with the options should pop-up.
    Instead of this, it makes my mac to go immediately to sleep mode.
    I dont know what caused this and I dont know how to fix that.
    Does anyone of you have a clue?
    Thanks a lot!

    I'm experiencing the same curious problem, here(Macbook Pro 13", mid 2009).  This started after upgrading to, Mavericks.  One press of the power button always used to bring up the dialog box with the various options.  Now, just a press of the power button, and it's immediate sleep time.  Music that was playing in iTunes stops playing, so it's different from the screen sleeping.
    But, as dominic23 states, "Press and hold the power button for seconds until the dialog box appears", does seem to do the trick.  This is just a different behavior than in the past.

  • Macbook Pro Retina 13'' - Power button and sleep mode

    I just updated my Mac, which is the latest Macbook Pro Retina 13''. All of a sudden, it refuses to enter sleep mode when I press the power button, which worked perfectly fine before the update. I now have to manually enter sleep mode from the monitor. After entering sleep mode, It works fine to press the power button to make it work again, but not reverse. Why?
    Thanks in advance!

    I have this problem as well. Worked perfectly before I updated to OS X Mavericks (10.9.2).
    Now I have to hold the power button in for it to sleep or click on it for a few times. But there is no problem when I'm going to wake the computer up, just a single push and it works fine. Is this a software issue or a hardware issue? Any respond from Apple regarding this issue and how to solve it? Or should i contact my retailer?
    MAcbook Pro Retina 13'
    Processor  2.6 GHz Intel Core i5
    Memory  8 GB 1600 MHz DDR3
    Graphics  Intel Iris 1024 MB

  • How to shutdown WinPE by pressing power button.

    Hello everybody,
            I encounter a issue in WinPE that is pressing power switch in WinPE can not be detected, unless you press it and hold for 4 seconds to force shutdown, or use command: wpeutil shutdown.
            In generally, we can use above two methods to shutdown PC in WinPE. but now I have to use power button to shutdown it (not force shutdown) due to I'm using equipment to test the stability of PC power cycling.
            Somebody could tell me how to make it work? Thank you very much!!!!

    Might try them over here.
    Windows Desktop Dev forums on MSDN
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Power Button affected by Mavericks

    Since installing Mavericks, the power button will only put my Macbook to sleep. The restart, shut down and sleep options can only be accessed from Apple logo on the task bar. Can I restore these power button options?

    It now sleeps on a momentary press.
    If you press and hold for 2-3 seconds, it presents the dialog.
    If you hold for about 10, it forces shutdown.

  • Power Button only works at startup, but non-functional afterwards.

    For a Macbook Pro 15
    A1226 / OS 10.6.8 / 2.2GHz Intel Core 2 Duo
    (1) When the computer is on, and i press the power button , the shutdown menu used to come on, but does not now.
    (2) When i press & hold the power button, the computer does not force shutdown, even when i hold it down for 30 seconds.
    (3) When I shutdown the computer via the apple menu, i cannot start the computer up using the power button
    (4) However, disconnecting the trackpad ribbon cable from the logic board, then reconnecting, the power button is operational allowing the computer to start back up
    (5)When I put the computer to sleep via the apple menu, it goes to sleep, and i can wake it up
    (6) When I restart via the apple menu, it powers down then restarts without any problems
    (7)The force quit keyboard short cut will not work most likely in that it uses the power button as a shortcut.
    So pursuant, to (4) above, it seems that the power button is non-functional after starting it up, and will only work after connecting/reconnecting the ribbon cable
    Bracing myself for no replies or "take it to the genius bar"

    Try resetting the  SMC http://support.apple.com/kb/ht3964

  • Iphone 5 stuck at a black screen.. Siri works but cant shut down with power button

    I was on instagram and it froze I hit the power button to put it to "sleep" and I tried to open it back up and its been stuck at a dark screen. I tried holding the power button in order to reset and nothing happens.. When I press the home button siri turns on but I can't get anywhere with that either.. Help please!!

    Hold down the home/sleep button together until you see the apple logo and then release.

  • IMac closes down instead of sleeping

    My computer frequently tries to shut down when it is sleeping;
    I use the power button to send it to sleep and mostly a click on the key board wakes it with the Password window; OK.  Sometimes I will also get a message 'shut down prevented by ( some open application)' or 'disc was not ejected properly'.  and other times by the 'log-in' window.
    Becomes a bit frustrating at times waiting for machine to re-start & , as I'm Gettin Old, time is not a thing I want to waste '
    I have set my time before sleeping at 15 minutes and shut down at 'never'; I usually close the mac down at the end of my day.
    I also have  a MacBook Air running the same OS, with no problems at all.
    Would appreciate any suggestions or advice.  Neil  NOBE (Nearly Over Bloody Eighty)

    Hi Neil,
    Welcome to Apple Support Communities.
    I found the following resource that may provide more information:
    Mac OS X: Why your Mac might not sleep or stay in sleep mode
    http://support.apple.com/kb/HT1776
    Some things reset the sleep timers, preventing the computer from sleeping:
    - Hard drive access (even if you're not using the computer, a running application might be accessing your drive, such as when downloading a large file or listening to music in iTunes)
    - Moving the mouse or using a portable Mac's trackpad, pressing a mouse button, or pressing a key on the keyboard
    - Some System Preferences settings (see below)
    - Open applications (see below)
    - Input devices (see below)
    - Expansion cards (see below)
    - Additional drives, such as USB, FireWire, DVD, or CD drives (see below)
    Thanks,
    Matt M.

Maybe you are looking for