how I can start lein ring server in background?
Asked Answered
H

1

6

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?

Heeley answered 17/4, 2013 at 15:3 Comment(3)
Yep - it's misprint, sorry. I'm using your variant.Voluntarism
what shell are you using?Luwian
$ /bin/bash I think =) "nohup" in answers below simple and useful - it's working!Voluntarism
P
2

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
Polyunsaturated answered 17/4, 2013 at 18:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.