Question

Now what I do is:

$ lein ring server &

Then what I see is: [1]+ Stopped lein ring server. Then I'm trying to use:

$ fg 1

And also see that it's stopped. What do I do wrong and how can I run ring as a background process?

Was it helpful?

Solution

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):

  • screen
  • detachtty
  • nohup
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top