mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 15:06:15 -04:00
Merge pull request #162 from LEXUGE/patch-1
Add support for SIGINT and SIGTERM handling
This commit is contained in:
commit
130f5391f8
1 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,16 @@
|
||||||
|
var process = require('process')
|
||||||
|
// Handle SIGINT
|
||||||
|
process.on('SIGINT', () => {
|
||||||
|
console.info("SIGINT Received, exiting...")
|
||||||
|
process.exit(0)
|
||||||
|
})
|
||||||
|
|
||||||
|
// Handle SIGTERM
|
||||||
|
process.on('SIGTERM', () => {
|
||||||
|
console.info("SIGTERM Received, exiting...")
|
||||||
|
process.exit(0)
|
||||||
|
})
|
||||||
|
|
||||||
const parser = require('ua-parser-js');
|
const parser = require('ua-parser-js');
|
||||||
const { uniqueNamesGenerator, animals, colors } = require('unique-names-generator');
|
const { uniqueNamesGenerator, animals, colors } = require('unique-names-generator');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue