title: .Net Core console app on Linux will not run as service
body: <p>I have a continuously running .Net Core (2.1) console app that schedules a number of repeating background tasks using the Quartz.Net scheduler. I am attempting to run the app on a Linux server (16.04). The app runs fine when running as a standalone application. However, when I try to run the app as a systemd service it hangs. The app loads and schedules the various tasks in Quartz.Net, but the scheduled background tasks never execute. What is different about the execution of a service versus standalone?</p>
  
  <p>The systemd service config file is as follows:</p>
  
  <pre><code>[Unit]
  Description=FiddleMon.Background
  
  
  [Service]
  User=ubuntu
  Restart=on-failure
  ExecStart=/home/ubuntu/scripts/start-fiddlemon.background.sh
  
  [Install]
  WantedBy=multi-user.target
  </code></pre>
  
  <p>I don't know if this has anything to do with the situation, but I did notice a difference in the STAT column from the <code>ps aux</code> listing for the app depending on whether it is running standalone or as a service (SLl vs SLl+):</p>
  
  <pre><code>standalone =&gt; 1782  1.4  8.4 2923228 171996 pts/1  SLl+ 00:18   0:33 /usr/bin/dotnet FiddleMon.Background.dll
  
  service =&gt; 1518  8.9  4.7 2767936 97132 ?       SLl  23:59   0:03 /usr/bin/dotnet FiddleMon.Background.dll  
  </code></pre>
  
  <p>Any suggestions would be appreciated.</p>