aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2009-12-13 19:21:06 -0500
committerRoger Dingledine <arma@torproject.org>2009-12-13 19:21:06 -0500
commitf7d99b62a3357f71e653bd5c39fa083336d82a8e (patch)
tree75368c0f93cc3dec8657cf1527cc1341d3c46bc7 /doc
parentd086c9a7f73ce5b9b7cf4add07fa7d071b829081 (diff)
downloadtor-f7d99b62a3357f71e653bd5c39fa083336d82a8e.tar.gz
tor-f7d99b62a3357f71e653bd5c39fa083336d82a8e.zip
New controller command "getinfo config-text"
It returns the contents that Tor would write if you send it a SAVECONF command, so the controller can write the file to disk itself.
Diffstat (limited to 'doc')
-rw-r--r--doc/spec/control-spec.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/spec/control-spec.txt b/doc/spec/control-spec.txt
index eb01641109..33d4658476 100644
--- a/doc/spec/control-spec.txt
+++ b/doc/spec/control-spec.txt
@@ -270,6 +270,9 @@
returns "250 OK" if successful, or "551 Unable to write configuration
to disk" if it can't write the file or some other error occurs.
+ See also the "getinfo config-text" command, if the controller wants
+ to write the torrc file itself.
+
3.7. SIGNAL
Sent from the client to the server. The syntax is:
@@ -378,6 +381,10 @@
"config-file" -- The location of Tor's configuration file ("torrc").
+ "config-text" -- The contents that Tor would write if you send it
+ a SAVECONF command, so the controller can write the file to
+ disk itself. [First implemented in 0.2.2.7-alpha.]
+
["exit-policy/prepend" -- The default exit policy lines that Tor will
*prepend* to the ExitPolicy config option.
-- Never implemented. Useful?]