in reply to Perl exe as a service, stuck on starting
I'd really like to help you (I abandoned my tries with windows services since service did not start in timely fashion errors..) but I'm unable to reproduce your ~working example.
I'm trying on Win10 with strawberry 5.26 64bit with all modules up to date: Win32::Daemon::Simple 0.2.6 Win32::Daemon 20131206 Win32::Registry 0.12 PAR::Packer 1.041
If I try your example (with a simple print to file and sleep function as work) or even if I try the TestSimpleService.pl that comes within the distribution I get no luck make them working..
First annoyances are in packing it: if I
pp daemon-simple01.pl -o daemon-simple01.exe
when I run as administrator I get
Can't locate utf8_heavy.pl in @INC (@INC contains:...
I found somewhere pp -u so I issued the packing with -u but I get:
Global symbol "$HKLM" requires explicit package name (did you forget t +o declare "my $HKLM"?) at Win32/Daemon/Simple.pm line 66.
This come from the no more used Win32::Registry module...
So how did you packed the program? Which strawberry version are you using? 32bit?
The only help I can offer you at the moment is about different way you can start and query a service: you have the gui interface services that is different from that of the task manager and you also have, as commandline tools, the net service command and the sc one. just to be sure all of them return the same results you are seeing now from the task manager.
L*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl exe as a service, stuck on starting
by Garden Dwarf (Beadle) on Feb 27, 2018 at 11:15 UTC | |
by swl (Prior) on Feb 27, 2018 at 20:51 UTC | |
by Garden Dwarf (Beadle) on Feb 28, 2018 at 07:46 UTC | |
by swl (Prior) on Feb 28, 2018 at 08:55 UTC | |
by dasgar (Priest) on Feb 28, 2018 at 16:32 UTC |