Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

azuki-trusty / azk   deb

Repository URL to install this package:

Version: 0.5.1 

/ usr / lib / azk / node_modules / forever-monitor / examples / graceful-exit.js

process.on('SIGTERM',function () {
  console.log('received SIGTERM');
  setTimeout(function () {
    console.log('Exiting after some time.');
    process.exit(0);
  }, 1000);
});

setInterval(function (){
  console.log('Heartbeat');
}, 100);

// run with: --killSignal
// forever --killSignal=SIGTERM -w start server.js