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

Robert Jordan robertj at gmx.net
Tue May 30 08:44:51 EDT 2006


Kornél,

> 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.

This kind of patches have been posted a couple of times on this
list. The problems are:

1) it doesn't work with "Worker MPM"
2) if a lot of Apache children are processing requests, every
    child will try to restart mod-mono-server. Even with locking,
    the load of the server will be huge. It's not suitable for
    production environments.

The attached patch performs locking.

Robert

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mod_mono2.diff
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060530/b14f6dc7/attachment.pl 


More information about the Mono-devel-list mailing list