[tor-bugs] #25054 [- Select a component]: [feature request] Command line option to specify torrc options
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sat Jan 27 20:53:21 UTC 2018
#25054: [feature request] Command line option to specify torrc options
----------------------------------+----------------------------
Reporter: yurivict271 | Owner: (none)
Type: enhancement | Status: closed
Priority: Medium | Milestone:
Component: - Select a component | Version:
Severity: Normal | Resolution: worksforme
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
----------------------------------+----------------------------
Changes (by cypherpunks):
* status: new => closed
* resolution: => worksforme
Comment:
Replying to [ticket:25054 yurivict271]:
> '''Problem''':
> In a FreeBSD port, it is needed to allow to start tor with user _tor.
> Currently, the package has to append ''"User _tor"'' during startup to
the ''etc/tor/torrc'' that is generally edited by the user.
>
> While this works, automated updating ''etc/tor/torrc'' is ugly. It is
ugly because it makes ''torrc'' different from the original ''@sample''
file, and because it is an error-prone process. User might delete/modify
this line.
Do you know about:
--defaults-torrc
> '''Proposed solution''':
> Add ''--torrc-values {|-separated torrc values}.''
> This argument will be parsed and will initialize values that are
normally set in the ''torrc'' file. The process' user (in my case the
startup script) will supply ''--torrc-values "User _tor"'' which will
nicely take effect in addition to what the user set in the ''torrc'' file.
You can already put every torrc option as a cli parameter (--User), but I
hope you are not going to
hardcode any parameters since this will break existing configs.
Please re-open if this does not work for you.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25054#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list