Apache on Mac OS X doesn't work if the OS sleeps

Ziv Gillat wrote on :

Hi,

As soon as Mac OS X (10.1) sleeps, Apache stops accepting incoming requests. I have to make sure that I never put the system to sleep. Just the monitor and the drive are OK to sleep. In Mac OS 9, this was fine with FileSharing, and sleeping.

Any ideas how I can overcome this, besides not ever sleeping?

Thanks ---

Ziv

R Shapiro replied on :

In article df352ebe.0111120145.66a15803@redacted.invalid, Ziv Gillat zgillat@redacted.invalid wrote:

Any ideas how I can overcome this, besides not ever sleeping?

Disable general sleep and instead enable separate sleep for the display and the drive.

Burghard W.V. Britzke replied on :

there has been a check button at mos9 to "wake up on network access". hoping this button re-appears in future releases.

R Shapiro schrieb:

In article df352ebe.0111120145.66a15803@redacted.invalid, Ziv Gillat zgillat@redacted.invalid wrote:

Any ideas how I can overcome this, besides not ever sleeping?

Disable general sleep and instead enable separate sleep for the display and the drive.

-- remove xxx to reply

Tim McNamara replied on :

In article df352ebe.0111120145.66a15803@redacted.invalid, Ziv Gillat zgillat@redacted.invalid wrote:

As soon as Mac OS X (10.1) sleeps, Apache stops accepting incoming requests. I have to make sure that I never put the system to sleep. Just the monitor and the drive are OK to sleep. In Mac OS 9, this was fine with FileSharing, and sleeping.

Any ideas how I can overcome this, besides not ever sleeping?

You have found the solution. Let the drive and display sleep, but do not let the system sleep.

R Shapiro replied on :

In article 3BEFC427.487DAF5F@redacted.invalid, Burghard W.V. Britzke burghard.britzke@redacted.invalid wrote:

there has been a check button at mos9 to "wake up on network access". hoping this button re-appears in future releases.

OSX has a similar checkbox. I don't know if it works for http requests but it definitely doesn't for ssh requests, or at least it didn't in 10.0. When 10.0 goes to sleep it seems to shut down ethernet altogether.

Jim Meiss replied on :

In article 121120011943206340%xxxreshapiroxxx@redacted.invalid, R Shapiro xxxreshapiroxxx@redacted.invalid wrote:

In article 3BEFC427.487DAF5F@redacted.invalid, Burghard W.V. Britzke burghard.britzke@redacted.invalid wrote:

there has been a check button at mos9 to "wake up on network access". hoping this button re-appears in future releases.

OSX has a similar checkbox. I don't know if it works for http requests but it definitely doesn't for ssh requests, or at least it didn't in 10.0. When 10.0 goes to sleep it seems to shut down ethernet altogether.

Similarly in 10.1...you can't use appleshare or ssh to get to a computer (at least to mine) when it is asleep.

M. Perry replied on :

This is because sleep really is sleep and not a light nap. Chron doesn't run either, which means that middle of the night clean up scripts often aren't getting executed.

I suspect the solution is to put the screen and perhaps the hard drive to sleep and let everything else run.

Similarly in 10.1...you can't use appleshare or ssh to get to a computer (at least to mine) when it is asleep.

Ziv Gillat replied on :
Thanks everyone for all your help :-)
Shrubya replied on :

zgillat@redacted.invalid (Ziv Gillat) wrote:

As soon as Mac OS X (10.1) sleeps, Apache stops accepting incoming

Any ideas how I can overcome this, besides not ever sleeping?

Umm... servers should not ever sleep.