aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-12-17 22:14:58 +0000
committerRoger Dingledine <arma@torproject.org>2004-12-17 22:14:58 +0000
commit26bce698adf89c3d0afeb49574f26c337d474f81 (patch)
tree04108c7c447ca6f406fc51d92090778b13f1485d /doc
parent323b3a8dbc265ae1c0c8082966e465da36485eb6 (diff)
downloadtor-26bce698adf89c3d0afeb49574f26c337d474f81.tar
tor-26bce698adf89c3d0afeb49574f26c337d474f81.tar.gz
specify the control-spec's 'signal' command
svn:r3169
Diffstat (limited to 'doc')
-rw-r--r--doc/control-spec.txt21
1 files changed, 19 insertions, 2 deletions
diff --git a/doc/control-spec.txt b/doc/control-spec.txt
index 9e4ec7939..251d2b47a 100644
--- a/doc/control-spec.txt
+++ b/doc/control-spec.txt
@@ -72,8 +72,9 @@ the message.
[The client tried to set a configuration option to an
incorrect, ill-formed, or impossible value.]
- 0x0006 Unrecognized event code
- [The client tried to set an event code that we don't recognize.]
+ 0x0006 Unrecognized byte code
+ [The client tried to set an byte code in the body that
+ we don't recognize.]
0x0007 Unauthorized.
[The client tried to send a command that requires
@@ -195,6 +196,22 @@ the message.
its config options into its torrc. Server returns DONE if successful, or
ERROR if it can't write the file or some other error occurs.
+3.10. SIGNAL (Type 0x0009)
+
+ Sent from the client to the server. The body contains one byte that
+ indicates the action the client wishes the server to take.
+
+ 0x01 -- Reload: reload config items, refetch directory.
+ 0x02 -- Controlled shutdown: if server is an OP, exit immediately.
+ If it's an OR, close listeners and exit after 30 seconds.
+ 0x10 -- Dump stats: log information about open connections and
+ circuits.
+ 0x12 -- Debug: switch all open logs to loglevel debug.
+ 0x15 -- Immediate shutdown: clean up and exit now.
+
+ The server responds with DONE if the signal is recognized (or simply
+ closes the socket if it was asked to close immediately), else ERROR.
+
4. Implementation notes
4.1. There are four ways we could authenticate, for now: