mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Prepare folders structure for angular app
This commit is contained in:
parent
b2ff5e3e68
commit
b9a3e09ad5
60 changed files with 13 additions and 86 deletions
16
server/helpers/utils.js
Normal file
16
server/helpers/utils.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
'use strict'
|
||||
|
||||
var logger = require('./logger')
|
||||
|
||||
var utils = {
|
||||
cleanForExit: cleanForExit
|
||||
}
|
||||
|
||||
function cleanForExit (webtorrent_process) {
|
||||
logger.info('Gracefully exiting.')
|
||||
process.kill(-webtorrent_process.pid)
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
module.exports = utils
|
Loading…
Add table
Add a link
Reference in a new issue