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