Recommended way to prevent a .Net Core 5 console app from ending when run on Linux as a service – Debian
I have a .Net Core 5 console app that runs on Linux (Debian 10). The basic structure is something like this: class Program { static async Task Main(string[] args) { await SetupStuffAsync(); MonitorGpioService.Run(); RunAScheduledServiceOnATimer(); Console.ReadLine(); } } Basically, it runs…