Killing gracefully a .NET Core daemon running on Linux : <p>I created a .NET Core console application running as a daemon on a Ubuntu 14.04 machine.</p>

<p>I want to stop the service without forcing it, being able to handle a kill event.</p>

<p>How can I achieve this?</p>
