[Mono-list] Mono service works with --debug only
Julien Sobrier
julien at sobrier.net
Tue May 27 21:05:44 EDT 2008
Daniel Nauck wrote:
> Hello,
>
> what version of Mono are you using?
> Do you use the dash shell?
>
> I fixed a such a problem for Mono 1.9 on Ubuntu's dash shell:
> http://lists.ximian.com/pipermail/mono-patches/2008-January/108859.html
>
>
> Daniel
>
> Julien Sobrier schrieb:
>> Hello,
>> I have a mono service that works well when I launch it with the --debug
>> argument:
>> mono-service2 -l:/var/run/ptestt-lock /usr/lib64/test/Test.exe --debug
>>
>> But when I run it without the --debug argument, the lock file is not
>> created, the service does not appear in "ps -ef", and there is nothing
>> in syslog. What can I do to debug the issue?
>>
>> Thank you
>>
>>
Hello,
it was actually a bug in the mono RPM from CentOS5. In mono=-service2:
if $debug; then
exec /usr/bin/mono $MONO_OPTIONS
`/usr/bin/monodir`/2.0/mono-service.exe $arg
s
else
exec /usr/bin/mono $MONO_OPTIONS
`/usr/bin/monodir`/2.0/mono-service2.exe $ar
gs </dev/null >& /dev/null &
fi
Note that in debug, it references mono-service.exe, otherwiase it calls
mono-service2.exe which does not exist.
Thank you
More information about the Mono-list
mailing list