[Mono-aspnet-list] Mono autorestart mode
grendel at twistedcode.net
Tue May 26 05:11:02 EDT 2009
> I want to have the mono ASP.NET server restarted automatically after some
> time/some requests.
> I've found a lot of pages and posts about the syntax:
>> MonoAutoRestartMode Requests
>> MonoAutoRestartRequests 10000
> But strangely enough, nobody is mentioning the configuration file/location
> where those lines should be added.
> (I tried (in Debian Etch) /etc/apache2/mods-enabled/mod_mono.conf, but it
> doesn't work.)
> (1) Anybody who knows where to put the lines above?
Inside your Mono VirtualHost definition for Apache.
> (2) Is it possible to have the mono ASP.NET server restarted automatically
> every night at e.g. 3h00, instead of after a fixed number of requests or
> after a certain up time?
Use a cronjob for that calling 'apache2ctl graceful'
More information about the Mono-aspnet-list