hello Garden Dwarf,

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*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

In reply to Re: Perl exe as a service, stuck on starting by Discipulus
in thread Perl exe as a service, stuck on starting by Garden Dwarf

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.