Dpack get data Node : V10
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
543 B

  1. var Service = require('node-windows').Service;
  2. var svc = new Service({
  3. name:'DPACKGetData',
  4. description: 'This application will fetch data from DPACK database and send it Primary Database',
  5. script: require('path').join(__dirname, 'server.js'),
  6. env:{
  7. name: "NODE_ENV",
  8. value: "production"
  9. }
  10. });
  11. // Listen for the "uninstall" event so we know when it's done.
  12. svc.on('uninstall',function(){
  13. console.log('Uninstall complete.');
  14. console.log('The service exists: ',svc.exists);
  15. });
  16. // Uninstall the service.
  17. svc.uninstall();