Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=79207 --- shadow/79207 2006-08-29 12:27:01.000000000 -0400 +++ shadow/79207.tmp.1657 2006-08-29 14:18:33.000000000 -0400 @@ -58,6 +58,39 @@ Hotfix: copy mono-service.exe into the service's current directory. Long term fix: outsource MonoServiceRunner onto an Assembly that gets installed into the GC. + +------- Additional Comments From [EMAIL PROTECTED] 2006-08-29 14:18 ------- +Am trying with this: + +using System.ServiceProcess; +using System; + +class X :ServiceBase{ + static void Main () + { + Console.WriteLine ("Hello!"); + System.ServiceProcess.ServiceBase.Run (new X()); + } + + protected override void OnStart(string[] args) + { + Console.WriteLine ("Startin"); + } +} + +I compile this, and then type: + +mono-service a.exe + +And I do get the message on the console, and the syslog: +Aug 29 13:18:46 erandi mono: /tmp/a.exe: Service started + +I tried moving a.exe to another directory, and it still works: + +mono-service /tmp/a.exe + + + _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
