1

how can I start a kestrel server running asp.net 5 in the background on ubuntu.

Usually you kick start the server by typing dnx web but this will start a process and you can't go back to shell unless you stop it by typing Ctrl+c

How can I start it in the background and return back to shell? also how to stop it once it is started in the background?

Is there a way to make this start once you start the ubuntu server? like a service for example?

DavidG
  • 113,891
  • 12
  • 217
  • 223
Sul Aga
  • 6,142
  • 5
  • 25
  • 37

1 Answers1

1

There's no out of the box solution for this but you can use something like nohup to do this. However, you'll have to kill the process in order to terminate it.

Also, see this question: How to run process as background and never die?

Community
  • 1
  • 1
Victor Hurdugaci
  • 28,177
  • 5
  • 87
  • 103