[Mono-dev] Mono Service crashs
Robert Jordan
robertj at gmx.net
Tue Dec 14 10:59:06 EST 2010
On 14.12.2010 16:16, Chakotey STME wrote:
> Hello Community,
>
> I have a problem with a mono-service.
> I have a mono-service in which I host a WCF-Service.
> I start the software with mono-service2 and it works fine.
> After a while (I can't say when exactly - sometimes after 1 hour,
> sometimes after 4 hours) the service crashs.
> There is no more mono-service-process on the linux-system.
> The lock-file in the /tmp-Directory still exists.
> So it have to be a crash as the reason the service isn't there
> anymore, haven't it?
>
> So what can I do to identify the problem?
> Is it a unhandled exception? How can I find it out? Because in the
> ServiceHost of the service I catch all Exception (or I believe it).
> Is there something like a log-file to identify this problem?
> The service worked in the background, so I had no messages at the console.
Use the "--debug" switch to redirect stdout+err to
a log file of your choice and put the whole thing
into background with the trailing "&"
nohup mono-service2 --debug .... > /tmp/mylogfile 2>&1 &
Robert
More information about the Mono-devel-list
mailing list