DEV Community

Discussion on: Event Viewer Logs with .NET Core Workers as Windows Services

Collapse
 
katnel20 profile image
Katie Nelson

Nice article John.
Isn't .NET Core supposed to run on Linux?
How can you make that code work and install it as a Linux Daemon?

Collapse
 
solrevdev profile image
John Smith

Thanks Katie,

It does indeed, I code mostly on macOS and Ubuntu these days and .NET Core works great 👍

So, that’s actually something I’m going to do and blog about soon but to get you started if you notice the UseWindowsSevice() line well there’s also a UseSystemd() extension method that helps set that up.

Check out this article from Glenn I’ll be using it myself as a starter

devblogs.microsoft.com/dotnet/net-...

Hope this helps

Collapse
 
katnel20 profile image
Katie Nelson

Yes, it does. I knew there was no sc command and I wanted to know how to start things up in Linux.