tor-hs: put torrc_generated into in-memory folder /var/run/
authorSergey Ponomarev <[email protected]>
Wed, 7 Feb 2024 22:01:07 +0000 (00:01 +0200)
committerJosef Schlehofer <[email protected]>
Tue, 20 May 2025 11:20:46 +0000 (13:20 +0200)
commit94de72970ebcb98e2933aa1764c267ec90f3f97c
treecb278eac484898650c2295910f3d0ce1b5a1b5cc
parent2f505ed7d8e3c2afcc931cc47886d905f14207cb
tor-hs: put torrc_generated into in-memory folder /var/run/

On each tor-hs service restart it generates a config file /etc/tor/torrc_generated.
The /etc/ is stored on a disk and kills it and slow.

Instead create a dedicated tor service Runtime Dir in the temp /var/run/.
It will be accessible only to the tor user.

Signed-off-by: Sergey Ponomarev <[email protected]>
net/tor-hs/files/tor-hs.conf
net/tor-hs/files/tor-hs.init