Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Perl exe as a service, stuck on startingby Garden Dwarf (Beadle) |
on Feb 26, 2018 at 16:13 UTC ( [id://1209982]=perlquestion: print w/replies, xml ) | Need Help?? |
Garden Dwarf has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks!
I'm using Win32::Daemon::Simple amongst with Perl Packer (pp) to generate an exe from a perl script. Then - as an administrator - I start the exe, and install the service. After that, in the task manager -> services, I start the service. I can check the service activity as it writes into a file. And it seems to execute without problems. What I do not understand is that into the task manager -> services, the service state is "starting" and not "running". Therefore I cannot ask the service to stop, I have to kill the process instead. Which is not very nice. The script looks like this (well, I removed a lot of lines to go to the essential):
I'm developing with Strawberry and running the service on Windows Server 2012 I anyone has a clue, I will be grateful! Thank you in advance :)
Back to
Seekers of Perl Wisdom
|
|