-
-
Notifications
You must be signed in to change notification settings - Fork 360
Open
Description
I tried following script to run another node package as a service. Opened my nodejs commandprompt as administrator so I have the elevated rights. Nothing is happening. No Service running, no console output, no nothing. Let me know how I can get you more information.
var Service = require('node-windows').Service;
// Create a new service object
var svc = new Service({
name: 'Subway IRC',
description: 'IRC client in the browser, running on port 3000',
script: 'E:\\subway\\subway'
});
// Listen for the "install" event, which indicates the
// process is available as a service.
svc.on('install', function() {
console.log('Service "%s" installed', svc.name);
svc.start();
console.log('Service "%s" started', svc.name);
});
svc.install();Metadata
Metadata
Assignees
Labels
No labels