[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-relays] Re: Programmatically determine if a relay is hibernating
On Sun, Feb 15, 2026 at 12:22:50AM -0000, forest-relay-contact--- via tor-relays wrote:
> What is the authoritative way to determine if a relay is hibernating? I
> would have thought that using the control socket would be best, but Tor
> seems to unlink it when it enters hibernation, so Stem does not work.
Yes, you should do it by querying the control interface. Here's what my
relay answers when it's hibernating:
$ telnet localhost 9150
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
authenticate
250 OK
getinfo accounting/hibernating
250-accounting/hibernating=hard
250 OK
I just tested by configuring a controlsocket and it seems to survive
hibernation too. If yours doesn't, please file a bug -- but make sure
that it isn't a Stem bug first.
--Roger
_______________________________________________
tor-relays mailing list -- tor-relays@xxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to tor-relays-leave@xxxxxxxxxxxxxxxxxxxx