Last modified: 2013-12-05 14:29:33 UTC
The npm packages.json in /js/ has a a start command bound to node api/server.js. In conjunction with bug 57598 which ask server.js to record the pid via a new --pidfile option, one could then implement the 'npm stop' command to let folks easily stop the daemon.
I don't you can pass arguments to npm's run-script. See: https://github.com/isaacs/npm/issues/3494
In this case, I would recommend not use npm start. Just use node api/server.js and start-stop-daemon with -m
(In reply to comment #2) > In this case, I would recommend not use npm start. Just use node > api/server.js and start-stop-daemon with -m Indeed. I was expecting 'npm start' and 'npm stop' to be the recommended way of acting with the daemon. I was wrong :-]