runsvdir does not run runsv recursively, as is documented.

From: Martin Castillo <castilma_at_uni-bremen.de>
Date: Wed, 3 Aug 2022 15:22:38 +0200

Hi,

I'm trying to set up services, which are in subdirectories of other
services. This is supported, according to the second paragraph of the
runsvdir man page:

runsvdir starts a runsv(8) process for each subdirectory, or
symlink to a directory, in the services directory dir, up to
a limit of 1000 subdirectories,

In my directory service/ I have:
Foo
Foo/run
Foo/bar
Foo/bar/run

After running runsvdir service, I expect two runsv instances to be
running. One for Foo, one for bar. But on my system, only one instance
for Foo is running, and bar/run is not being executed.

I have runit 2.1.2-29.

Has this feature been removed without updating the manpage?
I did not find anything in the archive.

Martin Castillo

To test this I used (also attached):
Foo/run:
#!/bin/bash
while :; do
        echo -n "FOO "; date; sleep 3;
done

Foo/bar/run
#!/bin/bash
while :; do
        echo -n "BAR "; date; sleep 3;
done
Received on Wed Aug 03 2022 - 15:22:38 CEST

This archive was generated by hypermail 2.4.0 : Wed Aug 03 2022 - 15:22:10 CEST