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.
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.