peter at wingsofdeath.nu
Thu Oct 21 15:17:39 EDT 2010
> I was wondering if its possible when doing a 'apache2ctl graceful' to make sure that the mono instances stay alive, instead of restarting also? Or is this only possible by using a reverse proxy and separating the mono instances from apache? The problem is, when I am going to update some other apache virtualhost, it has to be gracefully restarted (at least) to get it active, but I don't want the mono site to restart also. Any ideas?
> You can instruct mod_mono to not be in charge of starting your mod-mono-server.exe processes, this is done by setting MonoRunXSP to false.
> This requires you to set MonoUnixSocket or MonoListenPort. See the man page for details.
thanks for the reply. I been reading and trying some options, but what ever i do, on an "sudo apache2ctl graceful", the mono process is restarted to. I can see that, cause I have a singleton object that needs to be initialized. This happens from Global.asac.cs. And after the graceful, when I refresh the page, in the error.log I see the initialization. This is my config:
ServerAdmin webmaster at localhost
# MonoAutoApplication enabled
MonoServerPath local /usr/bin/mod-mono-server2
MonoApplications local "/:/home/peter/Documents/Development/willow/src/www"
#MonoUnixSocket local "/tmp/mod_mono_server_socket_local"
MonoListenPort local 9000
Options Indexes FollowSymLinks MultiViews
allow from all
Alias /remote "/home/peter/Documents/Development/willow/src/www"
Alias /content "/home/peter/Documents/Development/willow/src/www"
CustomLog /var/log/apache2/access.log combined
If I have the autoApplication enabled or disabled, the site works in all cases and mod-mono starts mod-mono-server. Should I start mod-mono-server myself to get this done?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-list