etherpad-lite/src/node
Rainer Rillke f12debd5c7 Catch SIGTERM for graceful shutdown (#3266)
Shut down database connection and exit the node process
when SIGTERM is encountered. This is especially important
when nodejs is run as PID1, e.g. in a docker container.

Shutting down connections to clients (browsers) is beyond
this patche's scope.

Resolves #3265
2017-11-04 19:59:19 -02:00
..
db fix typo 2017-07-10 20:59:08 +02:00
eejs use latest ejs 2015-04-11 09:53:27 +01:00
handler FIX-2864: Add useAbiword flag 2017-07-28 23:13:07 +05:30
hooks Catch SIGTERM for graceful shutdown (#3266) 2017-11-04 19:59:19 -02:00
utils Fetch credentials arg from CLI 2017-07-05 15:20:02 -04:00
easysync_tests.js Revert "51c14d9947 changed the return value of" 2015-02-16 06:22:49 +01:00
padaccess.js Use the cookie parser middleware 2015-05-07 18:35:21 +01:00
README.md Merge branch 'pita' 2012-03-02 22:00:20 +01:00
server.js whoops 2015-12-02 12:10:25 +00:00
stats.js Record metrics with 'measured' 2013-10-27 17:42:55 +01:00

About the folder structure

  • db - all modules that are accesing the data structure and are communicating directly to the database
  • handler - all modules that responds directly to requests/messages of the browser
  • utils - helper modules

Module name conventions

Module file names start with a capital letter and uses camelCase

Where does it start?

server.js is started directly