* Gerrit Pape writes: > On Wed, Oct 10, 2007 at 11:47:12PM +0200, Lasse Kliemann wrote: > > Well, one could place > > > > sv x ./service/* > > > > in /service/sub/finish. > > That's what I'd suggest, anything wrong with it? Maybe it has got a drawback compared to the solution of sending a HUP to the runsvdir process (acting on /service/sub/service). Assume this process is terminate (by TERM, not HUP), and in the meantime until the finish script runs, a directory from /service/sub/service is removed. Then the runsv process of that directory will not be terminated. In other words: runsvdir (by its internal list of all PIDs managed) has a better chance for terminating all runsv processes in /service/sub/service than a shell script acting based on filenames in /service/sub/service only.