1 | process.on('SIGTERM',function () {
|
2 | console.log('received SIGTERM');
|
3 | setTimeout(function () {
|
4 | console.log('Exiting after some time.');
|
5 | process.exit(0);
|
6 | }, 1000);
|
7 | });
|
8 |
|
9 | setInterval(function (){
|
10 | console.log('Heartbeat');
|
11 | }, 100); |
\ | No newline at end of file |