[Mono-dev] [PATCH] Make mod_mono restart mod-mono-server

Joshua Tauberer tauberer at for.net
Tue May 30 07:55:10 EDT 2006

Kornél Pál wrote:
> When mono crashes for example because of a missing assembly
> mod-mono-server will not be restarted automatically that causes Service
> Unavailable error pages.
> The attached patch restarts mod-mono-server if the socket cannot be opened.
> This solution may not be the best but I think there is a need for
> something like this.

I agree.

IIRC, the reason we don't do that now is that if you have a lot of
incoming requests and mod-mono-server takes some time to start, you'll
get a lot of forked mono processes -- from each request until one
mod-mono-server gets to the point of accepting connections.

Ideally what would be good would be to have some form of flag visible
across the apache child processes to ensure that only one m-m-s gets
started when it is not running -- possibly a file with a timestamp of
the last start attempt, or something.

- Joshua Tauberer


"Unfortunately, we're having this discussion. It's too bad,
because guess who listens to the discussion: the enemy."

More information about the Mono-devel-list mailing list