[Mono-list] mono-service2 doesn't call OnStart

Gonzalo Paniagua Javier gonzalo.mono at gmail.com
Sat Oct 25 13:53:47 EDT 2008

On Sat, 2008-10-25 at 12:35 -0400, Adam Tauno Williams wrote:
> I've create a fairly simple System.ServiceProcess.ServiceBase on what I
> think is the correct manner.   But when I try to run it with
> mono-service2 it seems as though nothing at all happens, not even any
> error messages.
> $ mono-service2 --no-daemon Whitemice.ZideNET.exe
>  - or -
> $ mono-service2 Whitemice.ZideNET.exe

I have modified your test to log to a file (attached) and run it using
mono-service2. The output I see in the file is:
Service ctor
Service ctor complete
Starting 1 services....
Service OnStart

So the problem must be something else.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Service.cs
Type: text/x-csharp
Size: 3216 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20081025/6a8ccf52/attachment.bin 

More information about the Mono-list mailing list