Running K Kestrel in the background

How to run the Kestrel web server on an ongoing basis in Linux / OSX? I can start the web server as expected using

k kestrel

However, I did not find a way to use it for saving, i.e.

k kestrel &

The process begins and then stops immediately.

+1
linux asp.net-core macos
source share
2 answers

Just try using

nohup k kestrel & 

Tested with CentOS 7 (64 bit)

Works as expected :)

+1
source share

You can also create an init.d script that will use s tart-stop-daemon along with nohup to control your application (not only start in the background, but also stop, autorun when the system starts, etc.), here is the script template And here are instructions on how to install and configure it

+1
source share

All Articles