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.

_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to