1
0
Fork 0
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:
Chocobozzz 2016-03-07 11:33:59 +01:00
parent b2ff5e3e68
commit b9a3e09ad5
60 changed files with 13 additions and 86 deletions

16
server/helpers/utils.js Normal file
View 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