Hi

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

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:

<VirtualHost *:80>
        ServerAdmin webmas...@localhost

#       MonoAutoApplication enabled
        MonoAutoApplication disabled
        MonoServerPath local /usr/bin/mod-mono-server2
        MonoApplications local 
"/:/home/peter/Documents/Development/willow/src/www"
        MonoRunXSP False
        #MonoUnixSocket local "/tmp/mod_mono_server_socket_local"
        MonoListenPort local 9000
        <Location />
                MonoSetServerAlias local
        </Location>

        DocumentRoot /home/peter/Documents/Development/willow/src/www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /home/peter/Documents/Development/willow/src/www>
                DirectoryIndex cms.aspx
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        Alias /remote "/home/peter/Documents/Development/willow/src/www"
        <Location /remote>
                SetHandler mono
        </Location>

        Alias /content "/home/peter/Documents/Development/willow/src/www"
        <Location /content>
                SetHandler mono
        </Location>

        ErrorLog /var/log/apache2/error.log
        LogLevel warn
        CustomLog /var/log/apache2/access.log combined
</VirtualHost>

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?

Cheers

Peter

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to