Closed wkentdag closed 8 years ago
There's no bug in the library, but there is a problem in the example. The script
attribute should be an absolute path, not __dirname
. The path is changing from when it runs as a daemon compared to when it runs without the daemon.
👍 thanks for clarifying!
I'm new to windows / service development so I'm not entirely sure whether this is a bug in the library or user error, but here's my situation: I'm using code lifted from
example/index.js
in this repo:I run
npm start
, which fires the following script:...and produces the following output, which would appear to indicate that the service is installed and started:
However, when I navigate to the
Services
app, it shows the service installed but idling, not running, and I have to manually start the service through the GUI:Here's my specs:
6.6.0
3.10.3