OSDN Git Service

tor: some fixes...
authormobinmob <mobinmob@disroot.org>
Sat, 5 Feb 2022 20:17:23 +0000 (22:17 +0200)
committermobinmob <mobinmob@disroot.org>
Sat, 5 Feb 2022 20:17:23 +0000 (22:17 +0200)
- 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).

usr/share/66/service/tor

index fd20a5b..4bf82f1 100644 (file)
@@ -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