[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-relays] OpenBSD: tor rc script: don't kill unrelated tor instances (patch)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
>> 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.
I'm certainly not aiming to change rc.subr's design ;)
(and finding the pidfile in a generic way is also probably non trivial)
>> 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}"?
This should read "--Log" no?
- From tor's man page:
> Other options can be specified on the command-line in the format
> "--option value", in the format "option value", or in a
> configuration file.
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCgAGBQJViTeWAAoJEFv7XvVCELh0ExEP/22liNw0Y5S2k2jhjIIfB3RT
J9hhfY41DZroRX+ayHQ6c5STCtivmC/+InQS9iiCc829GA7/ZVjHeZuVn6Y2lGEr
egFUntwzqGnDuxpeUAd32bvjwsZSQFon99yZCcOHVeiEgI8I5N3u/7zNKw9HxI8J
JpRps3AVCz782ttX5NES2KVYJEsCSbYaaCogG/KDK4wqQw3G+N3ubiwP/bcZlJAn
3Oy4cpRW8LTMktlKaV/2kd+rRqb8BjxXlfBUPP5DfSFk+RL8sEN8WFPgNADjkxxR
vvqtSu+34XCOPFW1OT8f/GADCveBueuY2/VmXjc0SWcExU1ALVKlAPjfLV1PVIBI
4uK4WaDld/YZVPtYQGrs4Cg+yAsS6VQW6oLgWf/MEFQe2c0Ou6eHSk1QAyrx7z1u
YK/ULPPVNo7HBbwhmgLYNDyIUFhQpKQtBa4cL9LxwJ1kBDBJzpSXxhCEFDolfjvO
avXLjdno8A5F0zjFOj0XxSoHCDIIcOrR3KCb2zWxsK7NGwkcuZNYV89+0+TnqhPd
/8J3Z2ii6d0dTMeqtWkBeZTkq01OfuucNoXSVKycrawgGKhagBq0V1rTGENMBYVB
JQWqYbYlHq7Juke3MU+O5vHRm34Lv4UPJX2Aw0mltCI3yTIHWH69taZvaAwD86JK
q6wXv7RmOTLqtAN795va
=6Igm
-----END PGP SIGNATURE-----
_______________________________________________
tor-relays mailing list
tor-relays@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays