As lein simply launches a Java process, this answer of course does not apply to ring/leiningen only.
The simplest way might be to use one of the following Linux/UNIX utilities (and some more as well):