From: mobinmob Date: Sat, 5 Feb 2022 20:17:23 +0000 (+0200) Subject: tor: some fixes... X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f1d6f8c6416743d5e5ae152187aa60234617710d;p=avyssos%2Fvoid-66-services.git tor: some fixes... - change @type to classic from longrun - use s6-softlimit to limit open files (that is to have the same behavior as the void runit service). --- diff --git a/usr/share/66/service/tor b/usr/share/66/service/tor index fd20a5b..4bf82f1 100644 --- a/usr/share/66/service/tor +++ b/usr/share/66/service/tor @@ -1,8 +1,13 @@ [main] -@type = longrun -@version = 0.0.2 +@type = classic +@version = 0.0.3 @description = "Anonymizing Overlay Network" @user = ( root tor ) [start] -@execute = ( tor --runasdaemon 0 ) +@execute = ( + s6-softlimit -o ${MAX_OPEN_FILES} + tor --runasdaemon 0 ) + +[environment] +MAX_OPEN_FILES=16384