I have a .NET API with a few Worker Services that I deploy on a CentOS 8 server. I know that there is a function in Microsoft.Extensions.Hosting package that is called UseSystemd(), which is supposed to help it run on Systemd. I can't figure out what it actually does or enables.
I have upgraded my .NET 5 api to .NET 6 and I cannot figure out where to put it, so I didn't add it. I did not have it in my .NET 5 api and it worked fine.
My package deploys and I run it with a Systemd service (without the Systemd()) and it runs just fine. It detects crashes like normal and I can view logs with journalctl
So, It doesn't seem like I need it. What does it actually do?