#14995: adding multi-instance support to debian packages (patch)

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi Weasel, many relay operators run multiple tor instances to overcome certain limitations. Currently the official deb packages do not come with an easy configurable way to run multiple tor instances. I created a ticket [1] and wrote a patch [2] to add such a functionality to the debian package while preserving the current behavior. A similar enhancement got submited to the RPM packages and is now shipped in RPMs since tor 0.2.6.4-rc [3]. It would be great if you could find some time to review and comment on #14995 - before tor 0.2.6.x gets released. thanks! Nusenu [1] https://trac.torproject.org/projects/tor/ticket/14995 [2] https://github.com/nusenu/tor-multi-instance-initscripts/blob/master/debian/... [3] https://trac.torproject.org/projects/tor/ticket/14996 https://lists.torproject.org/pipermail/tor-relays/2015-March/006605.html -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJVBuQFAAoJEFv7XvVCELh0hHcQAKmAHfmu4zlA3lwg+4IJCMgr cu77F8PkGTS4j9I5Sg3WjTg3xSPTwK3KOmWz3a5SOlQNLfo/LnzEB4owGg9Q7Q95 AdCMuh7zipsrZuENjv0gbbVRsv+hopimFQOypPj7pbi6+3tL/x0T4cStiUcx43No 7RnvIKpm1QDBNGhwwCWrQglH+T+h+XKb0JjaAS9zuP9FEAt2/JkEwmUAGScxnhF1 xFYR2i3EkKx7eX7Z4TE0wIDx+Q2UDr4/KcK3ZYbFEg24aKn75Iqs6HUOMOZB/JSY viJ2Y6q/M5j8zNcwSQ9herZDb0D6s0TYmvWf0XZnJAKeoKR7WgFuUvZuY35Ka/Y7 oHalTFgCTx5mw4CIvvMe0ybMQHTYdkb8CWOyWcC+F+LaH9TQ1yqlDi9zgZ5VWk29 nOwXQoiZNW1w3mJJzdqKuhsNAQytCcWMkWnBrDK+lCfN0WWWFxGlO75rTO7q9VuC 3VbmXcZJLhQquvfnHtqJOFheyIiWhuw+f+czJMvkmgdiQ4D346OlkBkePdpY9Ebs gI7W0Q5SAUiKWvRQKlvNav961ciYGWGckFsXL0lNxxHT2pN1Yz4+2EF32yBQ38hu aErK9Ouy973Qzy+ZhyDveOEoNvgGA2VyEXPK8ipfEFxP/ckdlcS3tw7AlcU78VT0 8zutjeDy+AoiazIrUCYj =OeBF -----END PGP SIGNATURE-----

Hi, Nusenu wrote (16 Mar 2015 14:09:13 GMT) :
many relay operators run multiple tor instances to overcome certain limitations. Currently the official deb packages do not come with an easy configurable way to run multiple tor instances.
Just for the record, we've discussed this a few months ago with weasel, and the plan was to use a systemd unit template, that allows to support this feature in a nice and elegant way: * introductory blog post about it: http://0pointer.de/blog/projects/instances.html * http://www.freedesktop.org/software/systemd/man/systemd.unit.html (look for "unit template") I've no opinion regarding adding such support to the SysV initscript, except I'm not personally interested in working on it myself (contrary to the systemd-based solution). Cheers, -- intrigeri

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 intrigeri:
Nusenu wrote (16 Mar 2015 14:09:13 GMT) :
many relay operators run multiple tor instances to overcome certain limitations. Currently the official deb packages do not come with an easy configurable way to run multiple tor instances.
Just for the record, we've discussed this a few months ago with Is there a trac entry?
weasel, and the plan was to use a systemd unit template, that allows to support this feature in a nice and elegant way:
Yes, that is great because I actually prefer systemd's way to do this as well :) I'll prepare a unit file for this and add it to the trac entry. Weasel wrote:
Tor trac is not the place to discuss Debian packaging enhancements
Even if we are talking about the debian packages provided by the torproject? https://deb.torproject.org/torproject.org/dists/ -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJVCBrVAAoJEFv7XvVCELh07YgP/0tZCe8wD55Ws8dnsMZJ/HlT YsPNJQnFM8zki+jsWG4Y2zMFogHHOsAtJryAT1d1jVn6+jsRfSa6fdIfstOEQnht VYwgXQKCT7BlqHfQcRefMBlmLSwPwyV1sxGEjYVY6ezrBz8cvgmlyFemoEwJxWs6 APG8jbeU141mRPjj+Hpjx3dn6PlbtZZTbzi9BCKWXXFIipc3e/Wm+wC5WkTrVBe5 ZrY/BfrliUqGe3iJ/pStPscg/SLKJwBJJgiOfgurRNOKR9hxa0trARxTai3IqUnt MusvjtCm32tmIVX0SCKMbouAFvaIfth0Fhqwu6q0BWTp9LjTA8gxevqGueGd9trH q0jKwdJWeLWiXjzB6xksXOMuyXLY3CTYTagnVBA+I+5s+PSm/zAOrsoPS2JH9gRB Tk4hT1hk+AEduPJNTJ/3vcJLdleK0f/2nixOnFtZaRODvv85XzZmLt/51mCfIZjX q5hML9sr8qT9v/V5sptPFwdr+7FxDfW/GG7m8RPDkEMPzdwLpZgFon/8NjPMIrWT 1vqqb0niKfkzVegWItuFn1sMX0wvj8ysGcHbu/4+I0TYnswDLvLTSFwy5PFYtBF2 E5RLn2f6E15++Nxil/tlSI7XW6X1BKicYonI1uqJRvGvVbi2V1cwWKUn/MD4+J+C S93dPXIzJO5e+CnUwWo6 =Ew/d -----END PGP SIGNATURE-----

Nusenu wrote (17 Mar 2015 12:15:22 GMT) :
intrigeri:
Just for the record, we've discussed this a few months ago with Is there a trac entry?
I don't think so.
I'll prepare a unit file for this and add it to the trac entry.
\o/
Weasel wrote:
Tor trac is not the place to discuss Debian packaging enhancements
Right. In the specific case of systemd unit templates, I think that a great part of the work will have to be done upstream first, before the Debian packaging can take benefit of it, so perhaps Tor's Trac is appropriate for the time being. Unless we want to support systemd unit templates only in Debian, but that would be a bit sad. Cheers, -- intrigeri

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
I'll prepare a unit file for this and add it to the trac entry.
a first version is there https://bugs.torproject.org/14995
Weasel wrote:
Tor trac is not the place to discuss Debian packaging enhancements
Right. In the specific case of systemd unit templates, I think that a great part of the work will have to be done upstream first, before the Debian packaging can take benefit of it, so perhaps Tor's Trac is appropriate for the time being. Unless we want to support systemd unit templates only in Debian, but that would be a bit sad.
I mainly aimed for Debian since Ondrej stated he wont migrate RPM packages to systemd anytime soon, but I would be happy to prepare unit files for RPM as well if there is a chance to get them into the RPM packages. -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJVCLEfAAoJEFv7XvVCELh0fYEP/iWdws9Rb4trl1EVrGAxLvO2 KIO5/VLuHfxD+HscTUv5JBpGd/Txm3dyELxmqS2s9ZchSN6Lw9Erlsrjtgwkq51G g4X2QoKQsEfB1aA2OLgSWE2kY8JaO1+D9qTmwR93MvDwvzg40JKMF6iaW17cZFVT JHICla6sY/QurB122IrI+AoThC1A4i76G863OkUJMmTB1Py07U8VC/WzDzcWvTix 8RhXwlEWSfwPZYSOK0cW19lyduMw7T5VHkSHywIUx16hkK1b3MfdiwlRAWJrAirl m2fHhUWltl7rkpacKs/gjGsi7jZ0twy7TS9Vce145P0fC5ZvTREM+kZcsIVClDzd 8jJe+wqy28RpT6DJU99enIfldIiFExv+Rbv8FaX6DcdS/B4E6y+xeX3+PuEMgAde qjJap0CaGHrDfbojqc4H9mhgfzttms5F4uGUNhKAvpKArIxq1t9qNb1Jg0nV8nwU 2l3HIj4uQwNVfm/g+eM/PVnL/F2fO3dmgv50OTGoQCuh6VbYSY1IBk3k59HXMUaw HRubrQ/K01Rq102YpMhnaEv4JG6vRR9Dh5ASt9GfV7AjNM2V/JL0wimmg1+DrwMY CwbWGawh0BCNP8Qjp+jOf+Sa+xA84+2YOFjjif8C41Jib+dPSTWFmw9OOQX+VmB+ 1x+gfRuitpHAyHyZfg24 =yWqg -----END PGP SIGNATURE-----
participants (2)
-
intrigeri
-
Nusenu