With the current OpenRC script it is already possible to run multiple instances of named, only bug left is that all instances are stopped when a single instance is stopped. Reproducible: Always Steps to Reproduce: 1. Create two chroots for bind, they can be copies. Make sure they can run. 2. Create symlinks in /etc/init.d called named.<instance> pointing to named 3. Create /etc/conf.d/named.<instance name> files, make sure to use the different chroots you created in step 1 4. Start both instances with /etc/init.d/named.<instance 1> start and /etc/init.d/named.<instance 2> start, both should be running now 5. Stop one instance: /etc/init.d/named.<instance 1> stop Actual Results: Both instances are stopped. Expected Results: Only the intended instance should be stopped. Bug is caused by the way start-stop-daemon is used in the stop function of the initscript, i'll attach a patch. The script is not documented to allow this usage, so i'm filing it as an enhancement.
Created attachment 904678 [details, diff] Proposed patch for named.init-r15 Proposed patch for named.init-r15
Created attachment 905121 [details, diff] Proposed patch to named.init-r14 Updated patch for named.init-r14. The output did not state which instance it was starting/stopping/reloading, with the updated patch ${SVCNAME} is used so it does show that information.
(In reply to pa4wdh from comment #2) > Created attachment 905121 [details, diff] [details, diff] > Proposed patch to named.init-r14 > > Updated patch for named.init-r14. The output did not state which instance it > was starting/stopping/reloading, with the updated patch ${SVCNAME} is used > so it does show that information. I don't think we want to change -r14 which is for EOL 9.16.x. Is your -r15 change at https://bugs.gentoo.org/940651#c1 fine? You marked it as obsolete so I'm not sure.
Created attachment 906646 [details, diff] New patch for named.init-r15 I'm sorry, that's my mistake, i intended to make a new patch for -r15 but somehow mixed it up with -r14. This new attachment is the same patch for named.init-r15.