-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Hi Pascal,
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.
Problem:
/etc/rc.d/tor stop might kill all (including unrelated) tor instances instead of the intended daemon only.
/etc/rc.d/tor start might never start the intended daemon if another tor instance is already running (rc_check believes tor is already running).
/etc/rc.d/tor restart might kill all tor instances and starts only one.
references: http://article.gmane.org/gmane.os.openbsd.misc/222896
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}}$"
(this line is a complete copy from rc.subr with the addition of one char: $ )
thanks, nusenu
https://github.com/nusenu/ansible-relayor/issues/40