The operator turns on the process hardware, starts the daemon, opens a web browser, works for 8 hours, then turns everything off. Normally, the platform would be a dedicated single-user PC, but out in the real world, it could be run on a laptop or a multi-user PC. So, to make it resilient against an operator inadvertently logging out while the process runs unattended for an hour, I think the daemon should continue to run with no one logged in. So I think I need a service.

The browser (either the local one or another one on a LAN) can not start or stop the daemon.

The system requires Apache to be running, and Apache has a system tray starter/stopper. Part of the startup procedure would be to click the Apache icon and ensure that Apache is running. Thus my idea for a system tray icon for starting and stopping my daemon – the operator goes to the same place to perform both functions – and my icon should act similar to Apache’s. So I’d like to keep the icon.

OK, so two distinct programs. Got some questions.

Service – the service is supposed to be able to pause and continue, but that makes no sense in my application. How do I tell Win32::Daemon “can’t pause”?

Icon – (1) the Apache icon appears whenever a user logs on, and it can also be added/removed from the Start Menu. How do I get mine to appear whenever a user logs on? (2) The Apache icon knows the status of the Apache service. How does it do that?

Dave


In reply to Re: Should this be a Windows Service ? by hennesse
in thread Should this be a Windows Service ? by hennesse

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.