http://www.perlmonks.org?node_id=1209989


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

How are you starting the service? I'm wondering of the details in the Comments section of Win32::Daemon::Simple, which describes what happens with various methods of running the scripts using the module, might help explain the issue that you are having.

  • 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 08:05 UTC

    I run the exe as administrator, this open a cmd prompt with multiple options:

    Type "continue" and press ENTER to start processing files in commandli +ne mode, type "install" and press ENTER to install the service, type "uninstall" and press ENTER to uninstall the service, type "start" and press ENTER to start the service, type "stop" and press ENTER to stop the service, type "ParameterName=Value" and press ENTER to change a service paramet +er or press ENTER to exit

    I select "install", which leads into a popup window saying that the service installed successfully.

    Then I go into the Windows' Task Manager (right-click on the start menu bar, select Task Manager, display more details, then select the "Services" tab). From there, I can see my service (Status "Stopped"). Right click on the service, select "Start". That's it. Status is changing to "Starting".