Welcome tag moderator AKA Unofficial DEV cheerleader. While most of my friends are found on SnapChat or Tic-Toc, you can find me here. And I OOP, but I’m not a VSCO girl.
Hi Katie!. For using Worker Service as Linux daemon is pretty simple. Instead of installing Microsoft.Extensions.Hosting.WindowsServices, you got to install Microsoft.Extensions.Hosting.Systemd and instead of .UseWindowsService() just use .UseSystemd(). That´s it. Then you got to install it as preferred on your Linux environment.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Does .UseWindowsService() run a Linux daemon and how do you get it to start/stop?
Hi Katie!. For using Worker Service as Linux daemon is pretty simple. Instead of installing
Microsoft.Extensions.Hosting.WindowsServices
, you got to installMicrosoft.Extensions.Hosting.Systemd
and instead of.UseWindowsService()
just use.UseSystemd()
. That´s it. Then you got to install it as preferred on your Linux environment.