UNPKG

ipfs

Version:

JavaScript implementation of the IPFS specification

13 lines (11 loc) 234 B
'use strict' /* * Stop the daemon. * * Returns an empty response to the caller then * on the next 'tick' emits SIGTERM. */ module.exports = (request, h) => { setImmediate(() => process.emit('SIGTERM')) return h.response() }