On 02.03.2011 10:51, cometeor wrote:
> I'm using mono-2.8.2 on debian (virtual machine by openvz).
> My test service:
>
> class Test : ServiceBase
> {
>    static void Main()
>    {
>      ServiceBase.Run(new Test());
>    }
>
>    static void Run()
>    {
>      while (!finished) {
>      }
>    }
>
>    static bool finished = false;
>    protected override void OnStart(string[] args)
>    {
>      Console.WriteLine("OnStart");

You're not supposed to block inside OnStart:

>      Run();
>    }

Robert

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

Reply via email to