#25054 closed enhancement (worksforme)

[feature request] Command line option to specify torrc options

Reported by: yurivict271 Owned by:
Priority: Medium Milestone:
Component: - Select a component Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

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.

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.

Child Tickets

Change History (2)

comment:1 Changed 23 months ago by yurivict271

I meant "vertical-line-separated".

comment:2 Changed 23 months ago by cypherpunks

Resolution: worksforme
Status: newclosed

Replying to 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.

Note: See TracTickets for help on using tickets.