[tor-relays] More than one instance with Debian Jessie

nusenu nusenu at openmailbox.org
Sat Jul 2 23:00:00 UTC 2016


>>> SocksPort auto
>>> RunAsDaemon 0
>>> Log notice file /var/log/tor/notices2.log
>>> ControlPort 9052
>>> HashedControlPassword xx:xxxxxxxxxx
>>> Nickname test2
>>> RelayBandwidthRate 500 KB
>>> RelayBandwidthBurst 800 KB
>>
>> This is lacking the configuration of a separate DataDirectory and
>> PidFile, eg.:
>>
>> DataDirectory /var/lib/tor/2
>> PidFile /var/run/tor/tor2.pid
> 
> These should not be added.

To be a bit more verbose:
On Debian the DataDirectory and PidFile settings are taken care of by
the multi-instance systemd service file. The service generates a
defaults torrc (--defaults-torrc) and the required folder before tor is
started.
That can be found at:
/var/run/tor-instances/<instancename>.defaults

for the details you can have a look at the service file:
https://gitweb.torproject.org/debian/tor.git/tree/debian/systemd/tor@.service

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.torproject.org/pipermail/tor-relays/attachments/20160702/78a0d40d/attachment.sig>


More information about the tor-relays mailing list