From f7d99b62a3357f71e653bd5c39fa083336d82a8e Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sun, 13 Dec 2009 19:21:06 -0500 Subject: 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. --- doc/spec/control-spec.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc') 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?] -- cgit v1.2.3-54-g00ecf