[Win32utils-devel] Demo daemon failure with mingw

Heesob Park phasis at gmail.com
Sun Sep 4 09:10:36 EDT 2011


Hi,

2011/8/22 Daniel Berger <djberg96 at gmail.com>

> Hi,
>
> I'm having some trouble with mingw and win32-service.
>
> Ruby 1.8.7 p330 (mingw)
> Windows Vista
>
> >ruby demo_daemon.rb install
> >ruby demo_daemon.rb start
>
> Result:
>
> c:\>tail -f win32_daemon_test.log
> 1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
> Daemon failure: Service_Main thread exited abnormally
>
> Using a version compile with VC9 works as expected, however.
>
> Any ideas? I'm not using seh.h btw.
>
> Regards,
>
> Dan
>
>
Here is an update of this issue.
I succeeded to run win32-service with win32-service 0.7.2 of daemon.c on
Ruby 1.8.7 p352 (mingw)
Windows 7 64bit

I'd like to know the reason why you're trying to run
ruby demo_daemon.rb install
ruby demo_daemon.rb start

The demo_daemon.rb is not for running on console.

The correct way is using demo_daemon_ctl.rb like
ruby demo_daemon_ctl.rb install
ruby demo_daemon_ctl.rb start

Regards,

Park Heesob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20110904/162f1073/attachment.html>


More information about the win32utils-devel mailing list