in reply to Perl exe as a service, stuck on starting

I have tried to compile with option "-g" (build an executable that does not have a console window) and now it works correctly. The sequence "Click start" > Starting > Running > "Click stop" > Stopping > Stopped works now.

The only issue is that without a console window, I cannot "interactively" install the service (as described above). However I should be able to open a CMD prompt and start the exe with "-install" instruction. This should do the trick.

  • Comment on Re: Perl exe as a service, stuck on starting

Replies are listed 'Best First'.
Re^2: Perl exe as a service, stuck on starting
by Garden Dwarf (Beadle) on Feb 27, 2018 at 09:40 UTC

    Well, I reply a little bit to myself... With the "-g" option, it seems that I cannot install the service by running the exe. Even with arguments.

    So if I compile 2 exe, 1 without the "-g" to install the service and another one with the "-g" to run the service, it works. But it is not nice... help is still welcome :)

      I made progress on this one. Option -g with pp, and "sc create" in a DOS terminal to install the service. No further issues so far.