I'd like to run a bunch of services in a kind of sub-hierarchy under `/service/sub'; more precisely the service in `/service/sub' shall be something like runsvdir managing services in a directory `/service/sub/service'. The naive approach was to let `/service/sub/run' be like this: #!/bin/sh exec runsvdir service One problem with this is that bringing down all services in `/service/sub/services' involves something like sv o /service/sub ; sv h /service/sub meaning that a simple removal of `/service/sub' is not enough, for this only will essentially result in a `sv x /service/sub' (according to the documentation of runit). As a solution, I came up with putting #!/bin/sh sv h . into `control/t'. It seems to work, but I am not sure whether this is a good solution, in particular whether it is free of race-conditions. Comments are welcome.