[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



>>> 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

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
tor-relays mailing list
tor-relays@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays