hyperdrive-daemon icon indicating copy to clipboard operation
hyperdrive-daemon copied to clipboard

document unclean shutdown procedure

Open edrex opened this issue 5 years ago • 3 comments

I had multiple versions of hyperdrive as I was debugging install, and after hyperdrive fs unmount; hyperdrive stop there were still a bunch of processes runnng. I saw they had pm2 as a common ancestor, which google told me I could:

npm i -g pm2
pm2 kill

Node people probably know the correct procedure but maybe there should be something in the docs about it? Or just make the existing stop subcommand clean up more thoroughly?

edrex avatar Jan 11 '20 17:01 edrex

@andrewosh maybe I was too far out of supported territory and this won't happen to other users? Your call, feel free to close.

edrex avatar Jan 13 '20 17:01 edrex

I ran into a similar issue while testing the new version of Beaker Browser. The daemon refused to stop even after I quit Beaker:

Screen Shot 2020-03-24 at 12 29 41 PM

I had no mount points, but I tried unmounting anyway:

Screen Shot 2020-03-24 at 12 32 21 PM

Eventually, I was able to kill it with pm2. 🤷‍♂

todrobbins avatar Mar 24 '20 19:03 todrobbins

Thanks @edrex. hyperdrive stop should do a full cleanup (it calls pm2.delete internally, which to my understanding should remove all traces of the process). I've noticed that this can bug out unfortunately, so I'll dig in and try to figure out where it's going wrong.

I'd rather make sure hyperdrive stop doesn't leave behind any stragglers rather than document the pm2-based cleanup. Not sure why that's happening, but it's happening to both you and Tod so definitely keeping this open.

andrewosh avatar Mar 26 '20 11:03 andrewosh