The article about hosting ASP.NET Core application on Linux systemd gives wrong example of service definition file #33989
Labels
aspnet-core/svc
hosting-deployment/subsvc
Source - Docs.ms
Docs Customer feedback via GitHub Issue
⌚ Not Triaged
Description
The example service definition file uses
KillSignal=SIGINT
however it does not actually work the way it is described. As the comment forSystemdLifetime
says:So what actually happens when using
KillSignal=SIGINT
is that the ASP.NET Core application is not shutdown gracefully and it leaves resources behind since they are not disposed properly. For example when the application listens on Unix socket then the socket is not deleted when the service ends and cannot be started again since the file already exists.The next paragraph then suggests
however it is not understood how this could even work in light of the above information that SIGINT terminates the application abruptly.
Page URL
https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-9.0&tabs=linux-ubuntu
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/host-and-deploy/linux-nginx.md
Document ID
815fe034-c9fc-aee3-a8b5-f2e860b30302
Article author
@Rick-Anderson
Related Issues
The text was updated successfully, but these errors were encountered: