Opened 6 years ago

Closed 6 years ago

#10060 closed enhancement (implemented)

allow tor to start if torrc does not exist

Reported by: mcs Owned by: nickm
Priority: Medium Milestone: Tor: 0.2.5.x-final
Component: Core Tor/Tor Version:
Severity: Keywords: tor-client torrc easy
Cc: brade, mikeperry Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

For TBB 3.x, we now put all of the default settings in a torrc-defaults file. The torrc file within the Tor data directory will be reserved for the user's custom settings. The goal is to not overwrite the user's settings when they (or our future automatic updater) overlays a new version of TBB on top of an existing installation, while still providing a way to include default settings.

But tor will not start up if the -f command line option points to a torrc file that does not exist. Here is a proposal: if a torrc-defaults file is provided, do not require that torrc exist. If this is too difficult to implement or distasteful in some way, we could probably instead modify the programs and scripts that start the TBB browser to create an empty torrc before starting anything. That would be a little more fragile though.

Child Tickets

Attachments (1)

0001-Implementing-allow-missing-torrc-CLI-option.patch (2.3 KB) - added by rl1987 6 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 6 years ago by nickm

Keywords: tor-client torrc easy added
Milestone: Tor: 0.2.5.x-final
Type: defectenhancement
Version: Tor: unspecified

I'd be okay with an --allow-missing-torrc command-line option that treats missing torrc files as if they were empty.

comment:2 Changed 6 years ago by rl1987

Status: newneeds_review

comment:3 Changed 6 years ago by nickm

Resolution: implemented
Status: needs_reviewclosed

Thanks! I've committed this as 86cfc64d45651872 and added some documentation and tests as 940d286a7493ba890f.

Note: See TracTickets for help on using tickets.