-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Using files to store pid and refactor processes termination * Using files to store pid and refactor processes termination * Refactor process termination * Update logging message during IPFS daemon termination * Refactor process termination and returned getPid async * Deleting a file before processes are terminated * Fix review comments * Add to fs.readFile to catch errors handler * Cleanup old PIDs on start * Fix installation --------- Co-authored-by: Noisekit <[email protected]>
- Loading branch information
Showing
5 changed files
with
77 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { downloadIpfs, ipfsDaemon, ipfsKill } from '../main/ipfs'; | ||
import { downloadIpfs, ipfsDaemon, ipfsTeardown } from '../main/ipfs'; | ||
|
||
async function main() { | ||
await downloadIpfs(); | ||
await ipfsDaemon(); | ||
} | ||
|
||
process.on('beforeExit', ipfsKill); | ||
process.on('beforeExit', ipfsTeardown); | ||
main(); |