[Mono-list] Service logging at boot

nzsaint chrisbrown76 at hotmail.com
Thu Sep 24 21:49:05 EDT 2009


I have successfully got my .Net Windows Service running under Mono using
mono-service2 on openSUSE 11.1. I created an init.script and start the
service similar to as follows:

/root/mono-devel/bin/mono-service2 --debug -l:/var/run/monotest.pid
-d:/root/monotest monotest.exe

The service starts correctly and I get "service started" messages in the
syslog. However in my service I also use StreamWriter to write to a separate
log file e.g /var/log/monotest.log. When the service starts at boot I get no
messages in this log file (even though the service starts without error). If
I stop and start the service using 'System Services' then entries are logged
to the log file correctly.

Can anyone suggest why this doesn't happen when the service starts at boot?  
-- 
View this message in context: http://www.nabble.com/Service-logging-at-boot-tp25605174p25605174.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list