Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add --service/--daemon CLI flag #3

Open
linden opened this issue Jan 15, 2022 · 0 comments
Open

Feat: Add --service/--daemon CLI flag #3

linden opened this issue Jan 15, 2022 · 0 comments

Comments

@linden
Copy link
Collaborator

linden commented Jan 15, 2022

Problem
This feature would log initial logs to STDOUT/STDERR then go into the background, similar to I2Pd's feature.

Temporary Fix
First start NANO in the background while saving it to a file.

NANO & | tee log

Then read the last line of the log, waiting for it to contain the "NANO is running" message.

(tail -f -n0 log &) | grep -q "NANO is running, you can make SAM requests now"

NOTE: this fix is naive, it will not handle timeouts or errors, it will just hang.

@linden linden changed the title Feat: add --service/--daemon CLI flag Feat: Add --service/--daemon CLI flag Jan 15, 2022
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

No branches or pull requests

1 participant