in reply to Win32::Daemon service doesn't reach RUNNING state

Services need to be installed, not just run.

Take a (another) look at theWin32::Daemon page. In particular, the more complete example of a service at Example 2 and the installer script at Example 3.

Alternatively, you may find Jenda's Win32::Daemon::Simple easier to use.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon
  • Comment on Re: Win32::Daemon service doesn't reach RUNNING state

Replies are listed 'Best First'.
Re^2: Win32::Daemon service doesn't reach RUNNING state
by zejames (Hermit) on Sep 14, 2004 at 11:29 UTC
    Ok.

    As I said, I just wanted to create a simple daemon, with a few lines of code as possible. But it seems that few under Windows is quite much ;)

    Kind regards

    --
    zejames

      Explain what you mean by "a daemon"?

      If you just mean a background task, that's a lot easier than creating a service--which has the daemon-like properties of running detached but is an aweful lot more besides.


      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "Think for yourself!" - Abigail
      "Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon
        Yeah, I just meant "a background task"...

        I had a look at Proc::Daemon, but it does not seem to run under Windows. However, I would be very grateful if such a module existed for Windows.

        Kind regards


        --
        zejames