-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Hi,
Tor RPM packages (starting with version 0.2.6.4-rc) now come with multi-instance support [1].
This makes it easier for everyone running more than one tor instance on a system.
A short mini how-to for relay ops that would like to use this:
service tor stop
1) create the folder: /etc/tor/enabled 2) move all your *.torrc files in this folder (they have to have the .torrc file suffix) 3) create the file '/etc/default/tor' and place the following line in it: MULTI_INSTANCE="yes" 4) make sure you have tor RPM packages v0.2.6.4-rc or higher
finally: service tor start will start one tor instance per exiting /etc/tor/*.torrc file (each file is checked using --verify-config first).
Note: /etc/tor/torrc will be ignored in multi-instance mode.
Maybe we can add documentation to comments in /etc/default/tor..
The init.d script supports "selective" commands: Lets say you only want to restart the instances that are defined in the following two torrc files: /etc/tor/enabled/tor22.torrc /etc/tor/enabled/tor443.torrc
you can do that with: service tor restart tor22 tor443
Please consider testing the new packages if you run already multiple instances today. If your instances do not start for unknown reasons please run 'tail -f /var/log/audit/audit.log' while staring them and file a bug (include the log lines and whether it works in SELinux permissive mode).
Thanks to Ondrej for merging this!
now lets hope for the debian packages [1] before 0.2.6.x is released, Nusenu
[1] https://trac.torproject.org/projects/tor/ticket/14996 [2] https://trac.torproject.org/projects/tor/ticket/14995