js-ceramic icon indicating copy to clipboard operation
js-ceramic copied to clipboard

CLI should gracefully shut down (clear js-ipfs lock)

Open Schwartz10 opened this issue 5 years ago • 1 comments

When ceramic-cli gets shut down, the js-ipfs repo lock isn't properly released. Users have to wait at least 10 seconds for that lock to get released before spinning the daemon back up. It would be great if ceramic-CLI could gracefully shut down to avoid this, which would pave the way for other graceful shutdown actions that might be useful for future use cases

Schwartz10 avatar Dec 18 '20 16:12 Schwartz10

This probably just needs us to regular a signal handler and trigger graceful shutdown (call ceramic.close()) when we receive a SIGTERM or other expected signals

stbrody avatar Dec 23 '20 20:12 stbrody