Opened 3 years ago

Last modified 3 years ago

#22375 new enhancement

Can tor-prompt optionally wait for tor to start on a port, rather than failing straight away?

Reported by: teor Owned by:
Priority: Medium Milestone:
Component: Core Tor/Chutney Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


When I start a chutney network and want to run tor-prompt on it, I have to wait until the relays are running before I start tor-prompt.

It would be nicer to just start tor-prompt, and have it tell me when the relays are up.

Child Tickets

Change History (5)

comment:1 Changed 3 years ago by atagar

Status: newneeds_information

Hi teor. Sorry but this one seems a tad specialized to Chutney. Would a shell script do the trick?

% cat

while ! nc -z localhost 9051; do
  sleep 0.5

exec tor-prompt --interface 9051

I'm all ears if you think this would be more generally useful.

comment:2 Changed 3 years ago by teor

Component: Core Tor/StemCore Tor/Chutney
Owner: changed from atagar to teor
Status: needs_informationassigned

Sure, I can add a script like this to chutney.
If I was going to add it to chutney, I'd revise it to allow lookup by tor instance number as well as port.

comment:3 Changed 3 years ago by teor

Status: assignedneeds_revision

comment:4 Changed 3 years ago by teor

Owner: teor deleted
Status: needs_revisionassigned

Disowning tickets I don't intend to work on in the next 6 months.

comment:5 Changed 3 years ago by teor

Status: assignednew

Mark all tickets that are assigned to nobody as "new".

Note: See TracTickets for help on using tickets.