tileserver-gl/src
zstadler 64adff0855
Handle SIGTERM (#782)
* Handle SIGTERM

Resolve #781

* Add `Caught signal ...` messages

Container log when sending a `SIGHUP` signal and then a `SIGTERM` signal using
`docker kill --signal ...` :

```
Starting tileserver-gl v4.4.8
[INFO] Automatically creating config file for zurich_switzerland.mbtiles
[INFO] Only a basic preview style will be used.
[INFO] See documentation to learn how to create config.json file.
Run with --verbose to see the config file here.
Starting server
Listening at http://[::]:8080/
Startup complete
Caught signal SIGHUP, refreshing
Stopping server and reloading config
Starting server
Listening at http://[::]:8080/
Startup complete
Caught signal SIGTERM, stopping gracefully
```

Note that the numeric signal values, as used in the shell version, were
replaced by signal names, as used in nodeJS.

* run 'npm run lint:js:fix'

---------

Co-authored-by: acalcutt <acalcutt@techidiots.net>
2023-03-01 10:05:21 -05:00
..
healthcheck.js change docker to use port 8080 by default (#638) 2022-11-20 23:00:41 -05:00
main.js style: fix lint issues in code 🕺 (#626) 2022-11-08 22:56:07 -05:00
serve_data.js fix: fix vectortile constructor (#723) 2023-01-20 17:41:18 -05:00
serve_font.js fix: Ensure font serving does not reflect userdata-derived errors as HTML (#647) 2022-11-24 11:07:11 -05:00
serve_light.js style: fix lint issues in code 🕺 (#626) 2022-11-08 22:56:07 -05:00
serve_rendered.js feat: enable Google Polyline in Static Images endpoint 🕺 (#648) 2023-01-12 15:48:43 -05:00
serve_style.js style: fix lint issues in code 🕺 (#626) 2022-11-08 22:56:07 -05:00
server.js Handle SIGTERM (#782) 2023-03-01 10:05:21 -05:00
utils.js Handle SIGTERM (#782) 2023-03-01 10:05:21 -05:00