Microsoft.Extensions.Hosting.Systemd
10.0.13
Prefix Reserved
See the version list below for details.
dotnet add package Microsoft.Extensions.Hosting.Systemd --version 10.0.13
NuGet\Install-Package Microsoft.Extensions.Hosting.Systemd -Version 10.0.13
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" Version="10.0.13" />
<PackageVersion Include="Microsoft.Extensions.Hosting.Systemd" Version="10.0.13" />
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" />
paket add Microsoft.Extensions.Hosting.Systemd --version 10.0.13
#r "nuget: Microsoft.Extensions.Hosting.Systemd, 10.0.13"
#:package Microsoft.Extensions.Hosting.Systemd@10.0.13
#addin nuget:?package=Microsoft.Extensions.Hosting.Systemd&version=10.0.13
#tool nuget:?package=Microsoft.Extensions.Hosting.Systemd&version=10.0.13
About
Provides an implementation for hosting an application as a Linux systemd service.
The package ensures proper communication between .NET applications and systemd, making it easier to build, deploy, and run applications as Linux services.
Key Features
- Systemd service integration
- Health check support
- Logging and diagnostics with different log levels
- Notify systemd on application state changes
How to Use
Wherever you configure your host, add the UseSystemd method to the builder chain:
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.UseSystemd() // Enable running as a Systemd service
.ConfigureServices((hostContext, services) =>
{
...
});
The UseSystemd method will no-op when not running as a daemon, allowing normal debugging or production use both with and without systemd.
Registering the service requires a special file, called a unit file, to be added to the /etc/systemd/system directory.
For more information on this part, check the run your app as a Linux service with systemd guide.
Main Types
The main types provided by this library are:
Microsoft.Extensions.Hosting.Systemd.SystemdNotifierMicrosoft.Extensions.Hosting.Systemd.SystemdLifetimeMicrosoft.Extensions.Hosting.SystemdHostBuilderExtensions
Additional Documentation
Related Packages
Feedback & Contributing
Microsoft.Extensions.Hosting.Systemd is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Microsoft.Extensions.Hosting (>= 10.0.13)
-
net10.0
- Microsoft.Extensions.Hosting (>= 10.0.13)
-
net8.0
- Microsoft.Extensions.Hosting (>= 10.0.13)
-
net9.0
- Microsoft.Extensions.Hosting (>= 10.0.13)
NuGet packages (68)
Showing the top 5 NuGet packages that depend on Microsoft.Extensions.Hosting.Systemd:
| Package | Downloads |
|---|---|
|
Ahsoka.Core
Package Description |
|
|
TJC.Cyclops.Web.Core
企服版框架中api核心功能项目,基于aspnetcore集成di、jwt、swagger、codefirtst、支持多种常见数据库、nacos配置中心、统一接口回复参数、全局异常捕获、全局接口日志、防重放攻击、图形验证码、快捷上下文对象、上传下载、数据导入导出等功能 |
|
|
Kephas.Extensions.Hosting
Provides the integration of Kephas Framework with Microsoft.Extensions.Hosting. Typically used areas and classes/interfaces/services: - BackgroundWorker, WorkerAppBase. Kephas Framework ("stone" in aramaic) aims to deliver a solid infrastructure for applications and application ecosystems. |
|
|
MeiChen.WebApi.Kernel
快速构建一个标准化的webapi应用。 Quickly build a standard webapi application。 |
|
|
FFCEI.Microservices
A free library for ASP.NET Core 6+ Microservices development, with Model, Model Repository, Entity Framework Core and common Web Api features like CORS, Json serialization fixes, Swagger generation, JWT Authentication for simple and objective microservices development |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0-rc.2.26504.105 | 2,232 | 10/13/2026 |
| 11.0.0-rc.1.26425.128 | 4,992 | 9/8/2026 |
| 11.0.0-preview.7.26381.103 | 1,236 | 8/11/2026 |
| 11.0.0-preview.6.26359.118 | 1,424 | 7/14/2026 |
| 11.0.0-preview.5.26302.115 | 1,551 | 6/9/2026 |
| 11.0.0-preview.4.26230.115 | 344 | 5/12/2026 |
| 10.0.13 | 67,485 | 10/13/2026 |
| 10.0.12 | 266,611 | 9/8/2026 |
| 10.0.11 | 343,411 | 8/11/2026 |
| 10.0.10 | 307,024 | 7/14/2026 |
| 10.0.9 | 259,669 | 6/9/2026 |
| 10.0.8 | 271,008 | 5/12/2026 |
| 10.0.7 | 215,310 | 4/21/2026 |
| 9.0.21 | 653 | 10/13/2026 |
| 9.0.20 | 5,847 | 9/8/2026 |
| 9.0.19 | 5,311 | 8/11/2026 |
| 9.0.18 | 8,393 | 7/14/2026 |
| 9.0.17 | 22,179 | 6/9/2026 |
| 9.0.16 | 13,962 | 5/12/2026 |
| 9.0.15 | 29,505 | 4/14/2026 |