[tor-relays] OpenBSD: tor rc script: don't kill unrelated tor instances (patch)

Fabian Keil freebsd-listen at fabiankeil.de
Tue Jun 23 10:11:58 UTC 2015


nusenu <nusenu at openmailbox.org> wrote:

> what do you think of changing OpenBSD's tor rc script to require
> perfect process matches when sending signals to them instead of the
> current "kill everything that starts with..." approach?
> 
> I've put tor-relays on CC so people can speak up if this change is not
> desired or breaks anyone's environment - I believe it fixes them.

While I don't use the OpenBSD port, I think using the --PidFile
option would be more reliable. It's already used by the FreeBSD
port and works as expected.
 
> One line "patch" for /etc/rc.d/tor to address this issue:
> (tested with and without custom daemon_flags)
> 
> 8a9,10
> > pexp="${daemon}${daemon_flags:+ ${daemon_flags}}$"
> > 

Did you test with custom flags like "--+Log ${tor_loglevel} file ${tor_logfile}"?
I suspect that the "+" and similar characters will make problems.

Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.torproject.org/pipermail/tor-relays/attachments/20150623/c95257b2/attachment.sig>


More information about the tor-relays mailing list