10.8 Server, how to sleep.....

This is what I did, (after mucho digging);


1. Clone my system first.

2. Run pmset -g assertions, to find out what's preventing the Mac from sleeping.

My list was constant and was really always two things. com.apple.serve and httpd. These had sub-processes being org.calendarserver.calendarserver, com.apple.server.filesharing, com.apple.ppp.pptp, com.apple.ppp.l2tp, com.apple.collabauthd. There were also com.apple.apache.denysystemsleep and com.apple.helpd.sdmbuilding being a sticking point.


I found out that helpd will not prevent sleep once it's finished what it's doing, so sometimes you'll be lucky sometimes not.

Apache on the oher hand I manually unload using sudo apachectl stop. This is something I'll have to look at fixing.


So I then set about finding these files and the reason it took so long was because I was looking in entirely the wrong place. Most of these are located at /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons.

I then made the obligatory copies and set about altering the plists. Inserted them as necessary, repaired permissions and restarted.


Bob is your mothers brother. I have SLEEP!!!

PowerMac G6 Alu Cinema HD, Mac OS X (10.6), Ctrl, Alt, Del.........AAAaarggghhh!

Posted on Sep 17, 2012 12:05 PM

Reply
12 replies

Sep 17, 2012 1:44 PM in response to Mac Admin1

Things in your Mac may be different of course but if you do have the same things preventing sleep, navigate to those files and open them with a text editor or XCode. (you'll need to have write permissions for the files and parent folder). You'll see an entry for something like, 'Prevent Sleep'. If its value is yes, change it to no.

Mar 21, 2013 12:25 PM in response to gumsie

My solution, although I may discover issues further down the road, is navigate to /System/Library/LaunchDaemons/org.apache.httpd.plist and change "OnDemand=NO" to YES. You'll require ownership permissions of the LaunchDaemons folder and the .plist file. I would say REMEMBER TO BACK THEM UP FIRST!!!!!!!!!!! This is the owning file of apachectl process as best as I can tell.

Mar 21, 2013 12:26 PM in response to gumsie

My solution, although I may discover issues further down the road, is navigate to /System/Library/LaunchDaemons/org.apache.httpd.plist and change "OnDemand=NO" to YES. You'll require ownership permissions of the LaunchDaemons folder and the .plist file. I would say REMEMBER TO BACK THEM UP FIRST!!!!!!!!!!! This is the owning file of apachectl process as best as I can tell.

Mar 21, 2013 12:26 PM in response to gumsie

My solution, although I may discover issues further down the road, is navigate to /System/Library/LaunchDaemons/org.apache.httpd.plist and change "OnDemand=NO" to YES. You'll require ownership permissions of the LaunchDaemons folder and the .plist file. I would say REMEMBER TO BACK THEM UP FIRST!!!!!!!!!!! This is the owning file of apachectl process as best as I can tell.

Mar 21, 2013 12:28 PM in response to gumsie

My solution, although I may discover issues further down the road, is navigate to /System/Library/LaunchDaemons/org.apache.httpd.plist and change "OnDemand=NO" to yes. You'll require ownership permissions of the LaunchDaemons folder and the .plist file. I will say REMEMBER TO BACK THEM UP FIRST!!!!!!!!!!! This is the owning file of apachectl process as best as I can tell.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

10.8 Server, how to sleep.....

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.