by moving CONFFILE=/etc/tor/torrc from the init.d script into the conf.d file it would by easier to setup a 2nd tor instance at the same system. And PIDFILE=/var/run/tor/tor.pid within the init.d script would need an adaption too (by coding `basename $0` into the file name ?)
(In reply to Toralf Förster from comment #0) > by moving > > CONFFILE=/etc/tor/torrc > > from the init.d script into the conf.d file it would by easier to setup a > 2nd tor instance at the same system. > > And > > PIDFILE=/var/run/tor/tor.pid > > within the init.d script would need an adaption too (by coding `basename $0` > into the file name ?) Great idea! I look forward to the patch ;) Teasing aside, if you can write a patch I'll apply it, else I'll hack something up. Take a look at stunnel which allows you to create several /etc/init.d scripts, all named things like stunnel.home stunnel.office. The pid file is then created as /run/stunnel/${SERVICENAME}.pid where SERVICENAME=stunnel.home etc. You can do the same with the tor and not only allow multiple pids but also mutliple config files using the same technique. Give it a go and I'll help if you get stuck, don't have time, etc.