[tor-bugs] #12834 [RPM packaging]: config parameter "hardcoded" in in torctl

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Aug 9 15:34:45 UTC 2014


#12834: config parameter "hardcoded" in in torctl
---------------------------+-------------------------
 Reporter:  cypherpunks    |          Owner:  marlowe
     Type:  defect         |         Status:  new
 Priority:  normal         |      Milestone:
Component:  RPM packaging  |        Version:
 Keywords:                 |  Actual Points:
Parent ID:                 |         Points:
---------------------------+-------------------------
 RPMs from [1] use an init script [2] that in turn invokes torctl [3].

 Trying to configure custom pidfile, log, DataDirectory or user in you
 config will not work since torctl [3] specifies these parameters on the
 command line which will overrule your config file options.

 Having a look at the running tor process started by the init/torctl script
 shows:

 {{{/usr/bin/tor -f /etc/tor/torrc --pidfile /var/run/tor/tor.pid --log
 notice file /var/log/tor/tor.log --runasdaemon 1 --datadirectory
 /var/lib/tor --user _tor}}}

 To be able to configure these parameters you would have to modify
 /usr/bin/torctl
 which will be overwritten with the next update since it is no config file
 [4].


 I would suggest to migrate to systemd startup altogether. You could simply
 reuse fedora's file [5]?



 [1] https://deb.torproject.org/torproject.org/rpm/
 [2] https://gitweb.torproject.org/user/hiviah/rpm-
 tor.git/blob/HEAD:/contrib/tor.sh.in
 [3] https://gitweb.torproject.org/user/hiviah/rpm-
 tor.git/blob/HEAD:/contrib/torctl.in
 [4] https://gitweb.torproject.org/user/hiviah/rpm-
 tor.git/blob/HEAD:/tor.spec.in#l282
 [5] http://pkgs.fedoraproject.org/cgit/tor.git/tree/tor.systemd.service

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12834>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list