Difference between revisions of "Setup:Installation Guide/System Preparation/Windows/Parsoid/ parsoid.service"

[unchecked revision][quality revision]
(Tag: 2017 source edit)
m (Text replacement - "[[en:{{PAGENAME}}]]" to "[[en:{{FULLPAGENAME}}]]")
 

This is the content for the file "parsoid.service". You can find detailed information on the Parsoid documentation page:

var Service = require('node-windows').Service;

// Create a new service object
var svc = new Service({
  name:'Parsoid Web Service',
  description: 'Parsoid Web Service for MediaWiki',
  script: 'C:\\bluespice\\bin\\npm\\node_modules\\parsoid\\bin\\server.js'
});

// Listen for the "install" event, which indicates the
// process is available as a service.
svc.on('install',function(){
  svc.start();
});

svc.install();

Attachments

Discussions