Skip to content

Allow spawned daemon processes to remain running#57

Open
specious wants to merge 5 commits into
hypercore-protocol:masterfrom
specious:fix/daemon-start
Open

Allow spawned daemon processes to remain running#57
specious wants to merge 5 commits into
hypercore-protocol:masterfrom
specious:fix/daemon-start

Conversation

@specious

@specious specious commented Jan 3, 2022

Copy link
Copy Markdown

I'm slightly perplexed as to how this used to work, but testing either way shows that the daemon processes spawned by hyp daemon start have a tendency to terminate if they are launched without disconnecting their stdio from the parent process.

@OskarRubensson

Copy link
Copy Markdown

This fix works and without it the CLI-tool doesn't work. A new release with this included would be nice.

@davetapley

Copy link
Copy Markdown

What's the easiest way to test this locally? 🤔

@OskarRubensson

Copy link
Copy Markdown

What's the easiest way to test this locally? 🤔

Pull this fork to test the fix locally: https://github.com/specious/cli/tree/fix/daemon-start

@KougatSundew KougatSundew left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested these changes on Fedora 34 & Windows 11. The fix works well.

@specious

Copy link
Copy Markdown
Author

What's the easiest way to test this locally? 🤔

I pull PR's into a branch to test them like this:

git fetch origin pull/57/head:pr-57
git checkout pr-57

@pcfreak30

Copy link
Copy Markdown

Please get this merged in. It's giving me headaches :sweat_smile.

@specious

specious commented Jul 7, 2022

Copy link
Copy Markdown
Author

@mafintosh, could you please take a quick look at this?

@specious

specious commented Aug 1, 2022

Copy link
Copy Markdown
Author

@pfrazee, no doubt you are busy, but all you need to do is merge and push to npm.

@specious

specious commented Aug 1, 2022

Copy link
Copy Markdown
Author

@andrewosh, maybe you could take a quick look?

@mafintosh

Copy link
Copy Markdown
Contributor

@specious hi! we've been focused on making the latest hypercore and hyperdrive (see the -next repos). i suggest you take a look at those. we'll be deprecating the deamon when those land, as they allow for much easier "embedded" workflows so you don't need a daemon at all which is nice.

suggest you join the discord if you wanna know more :)

@specious

specious commented Aug 2, 2022

Copy link
Copy Markdown
Author

That's quite exciting, but merging this pull request would fix the version that people are currently trying to use.

@ralphtheninja

ralphtheninja commented Sep 3, 2022

Copy link
Copy Markdown

@mafintosh Can we get this merged and published as a patch? I'm installing this globally with npm i @hyperspace/cli -g and manually editing this file to make it work. I realize you are working on more important things that will be coming out, but there are people relying on this to make it work on node 16.

@originalmk

Copy link
Copy Markdown

@ralphtheninja Same. I came across this project today and I wanted to give it a try. NodeJS LTS installed, everything fine... but what... it does not work! Would really appreciate if this was merged.

@specious

specious commented Sep 5, 2022

Copy link
Copy Markdown
Author

For the time being, we can install it directly from this pull request:

npm i -g hypercore-protocol/cli#pull/57/head

@ralphtheninja

ralphtheninja commented Sep 6, 2022

Copy link
Copy Markdown

For the time being, we can install it directly from this pull request:

I had no clue you could do this. Very nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants