[Mono-aspnet-list] Stopping fastcgi-mono-server gracefully andwebsite content updating with no need of restarting it.

Marcelo Zabani mzabani at gmail.com
Sat Nov 12 18:52:37 EST 2011


Hi, I have installed and am now running apache2 with mod_mono. However, it
still seems that Application_End is not being called when I stop the
server, or even when I choose to restart it from the panel (the panel from
the docs).

Am I doing something wrong or is this really the behavior of .NET?

On Sat, Nov 12, 2011 at 5:18 PM, Jesse Pasichnyk <jesse at pasichnyk.net>wrote:

> The mod_mono created process will recycle once you update the files, which
> will cause the loading process to hang slightly he first time its hit to
> load the application back up.  Same process occurs on IIS hosted .net apps.
>
> For stopping it, look at the mono control panel documentation for mod_mono.
> ------------------------------
> From: Marcelo Zabani
> Sent: 11/12/2011 10:14 AM
> To: mono-aspnet-list at lists.ximian.com
> Subject: Re: [Mono-aspnet-list] Stopping fastcgi-mono-server gracefully
> andwebsite content updating with no need of restarting it
>
> Thank you very much for your answers. I will switch to Apache + mod_mono
> right now!
> However, I would like to ask the same questions (the first, second and
> third) again, this time regarding apache+mod_mono.
>
> Thank you very much.
>
> On Sat, Nov 12, 2011 at 10:47 AM, Robert Jordan <robertj at gmx.net> wrote:
>
>> On 12.11.2011 06:05, Marcelo Zabani wrote:
>> >     1. Can I update the contents of my website (dll's, for instance)
>> without
>> >     having to restart the fastcgi process? Is there a possibility of
>> >     momentaneous failure for my visitors when I'm doing that?
>>
>> The web app should restart (by recycling the appdomain) whenever
>> it detects that one of its dependencies has changed.
>>
>> >     2. How can I gracefully stop fastcgi-mono-server? I took the
>> >     initialization script from
>> >     http://yojimbo87.github.com/2010/03/14/mono-startup-script.html as
>> >     basis, but it just kills (sends SIGTERM) the fastcgi-mono-server
>> process,
>> >     not calling Application_End in Global.asax (and that is what I mean
>> by
>> >     ungraceful shutdown). SIGHUP won't work either (though it also
>> kills the
>> >     server)
>>
>> Currently, there is no way to shutdown a fastcgi-mono-server
>> process gracefully.
>>
>> > Also, I can't find a page to follow the news or the state of
>> > fastcgi-mono-server, the only references I have taught me how to set up
>> the
>> > server and the basic workings of it, but I have NO IDEA where to look
>> for
>> > new versions and changelogs (or even a download page, so far I've been
>> > using portage to install the xsp package, which comes with
>> > fastcgi-mono-server). I found http://kerrick.wordpress.com/2007/08/but the
>> > last post on fastcgi-mono-server is so old that it scares me.
>>
>> fastcgi-mono-server is basically unmaintained. It has received
>> some patches during the last years, but these documentations
>> and articles still apply.
>>
>> > If I may ask one last question, how can I run fastcgi-mono-server as an
>> > unprivileged user? I'm afraid to try to setuid the process, since I'm
>> not
>>
>> Well, simply don't run it as root.
>>
>> > quite sure if mono will respect the setuid flag (haven't tried it yet)
>> and
>>
>> It will not. fastcgi-mono-server is just a script that won't pay
>> attention to setuid.
>>
>> Robert
>>
>> _______________________________________________
>> Mono-aspnet-list mailing list
>> Mono-aspnet-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
>>
>
>
>
> --
> Marcelo Zabani
>
>


-- 
Marcelo Zabani
(19) 9341-0221
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20111112/e07a2302/attachment-0001.html 


More information about the Mono-aspnet-list mailing list