Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log shutdown of ngsi_adapter server #6

Merged
merged 10 commits into from
Jun 30, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:
- COVERALLS_SERVICE_NAME=travis-ci
# COVERALLS_REPO_TOKEN (encrypted)
- secure: d3nNtxhWasL/FYdawV3RurfVY/rq6lsNuvr19hpsEiCHG0K1TbFEie8bhRz8nrt3vT6JmjPUmBGDP+6+eTIFnz+6IQDFBVG97SQ/wgsZMSiwir5Uvovn7kk5Kgu6nJaa49w3/oSw62QFquuMaYO9OusVA4eldkm1VAklZeJGgD8=

install:
- cd ngsi_adapter/src
- npm install
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FIWARE Monitoring GE components
[![Build Status](https://travis-ci.org/telefonicaid/fiware-monitoring.svg)](https://travis-ci.org/telefonicaid/fiware-monitoring)
[![Coverage Status](https://coveralls.io/repos/telefonicaid/fiware-monitoring/badge.png)](https://coveralls.io/r/telefonicaid/fiware-monitoring)
[![Build Status](https://travis-ci.org/telefonicaid/fiware-monitoring.svg?branch=develop)](https://travis-ci.org/telefonicaid/fiware-monitoring)
[![Coverage Status](https://coveralls.io/repos/telefonicaid/fiware-monitoring/badge.png?branch=develop)](https://coveralls.io/r/telefonicaid/fiware-monitoring)

## Changelog

Expand Down
1 change: 1 addition & 0 deletions ngsi_adapter/src/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
report
site
*.log
Empty file modified ngsi_adapter/src/adapter
100644 → 100755
Empty file.
9 changes: 9 additions & 0 deletions ngsi_adapter/src/lib/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,15 @@ exports.main = function() {
logger.error(err.message);
process.exit(1);
});
process.on('exit', function() {
logger.info('Server stopped');
});
process.on('SIGINT', function() {
process.exit();
});
process.on('SIGTERM', function() {
process.exit();
});
http.createServer(asyncRequestListener).listen(opts.listenPort, opts.listenHost, function() {
logger.info('Server running at http://%s:%d/', this.address().address, this.address().port);
});
Expand Down
2 changes: 1 addition & 1 deletion ngsi_adapter/src/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.1",
"version": "1.1.0",
"name": "ngsi_adapter",
"main": "lib/adapter.js",
"description": "Generic NGSI Probe Adapter",
Expand Down