![]() |
VOOZH | about |
dotnet add package Microsoft.Extensions.Hosting.Systemd --version 10.0.9
NuGet\Install-Package Microsoft.Extensions.Hosting.Systemd -Version 10.0.9
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" Version="10.0.9" />
<PackageVersion Include="Microsoft.Extensions.Hosting.Systemd" Version="10.0.9" />Directory.Packages.props
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" />Project file
paket add Microsoft.Extensions.Hosting.Systemd --version 10.0.9
#r "nuget: Microsoft.Extensions.Hosting.Systemd, 10.0.9"
#:package Microsoft.Extensions.Hosting.Systemd@10.0.9
#addin nuget:?package=Microsoft.Extensions.Hosting.Systemd&version=10.0.9Install as a Cake Addin
#tool nuget:?package=Microsoft.Extensions.Hosting.Systemd&version=10.0.9Install as a Cake Tool
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.
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.
The main types provided by this library are:
Microsoft.Extensions.Hosting.Systemd.SystemdNotifierMicrosoft.Extensions.Hosting.Systemd.SystemdLifetimeMicrosoft.Extensions.Hosting.SystemdHostBuilderExtensionsMicrosoft.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 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 netstandard2.1 is compatible. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
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 |
Showing the top 20 popular GitHub repositories that depend on Microsoft.Extensions.Hosting.Systemd:
| Repository | Stars |
|---|---|
|
immense/Remotely
A remote control and remote scripting solution, built with .NET 8, Blazor, and SignalR.
|
|
|
ONLYOFFICE/CommunityServer
Free open source office suite with business productivity tools: document and project management, CRM, mail aggregator.
|
|
|
DigitalRuby/IPBan
Since 2011, IPBan is the worlds most trusted, free security software to block hackers and botnets. With both Windows and Linux support, IPBan has your dedicated or cloud server protected. Upgrade to IPBan Pro today and get a discount. Learn more at ↓
|
|
|
webprofusion/certify
Professional ACME Client for Windows (and now cross-platform via Certify Management Hub). Certificate Management UI, powered by Let's Encrypt and compatible with all ACME v2 CAs. Used by over 150,000 organisations. Download from certifytheweb.com
|
|
|
ariacom/Seal-Report
Database Reporting Tool and Tasks (.Net)
|
|
|
ThingsGateway/ThingsGateway
ThingsGateway is a cross-platform, high-performance gateway for edge data acquisition and IoT connectivity. Developed with .NET 8, it offers a suite of powerful tools, including advanced PLC communication libraries and debugging software.
|
|
|
creazyboyone/FastGithub
FastGithub 是 GitHub 加速神器,解决 GitHub 打不开、用户头像无法加载、releases 无法上传下载、git-clone、git-pull、git-push
|
|
|
CodeMazeBlog/CodeMazeGuides
The main repository for all the Code Maze guides
|
|
|
codeproject/CodeProject.AI-Server
CodeProject.AI Server is a self contained service that software developers can include in, and distribute with, their applications in order to augment their apps with the power of AI.
|
|
|
yuzd/AntDeploy
Tools to deploy applications to remote server(iis,windowsService,linuxService,docker) support netframework and dotnetcore,support rollback and increment deploy
|
|
|
NexusForever/NexusForever
An emulator for the defunct MMORPG WildStar which supports build 16042 (Final Patch)
|
|
|
isaacrlevin/presencelight
PresenceLight is a solution to broadcast your various statuses to light bulbs.
|
|
|
RapidScada/scada-v6
Contains Rapid SCADA 6 source code.
|
|
| LANCommander/LANCommander | |
|
Texnomic/SecureDNS
Secure, Modern, Fully-Featured, All-In-One Cross-Architecture & Cross-Platform DNS Server Using .NET 10
|
|
|
0x101-Cyber-Security/NetLock-RMM
The open-source RMM supporting Windows, Linux & MacOS
|
|
|
andrewlock/asp-dot-net-core-in-action-2e
Source code examples for ASP.NET Core in Action, Second Edition
|
|
| shr670377723/CommunityServer-master | |
|
andrewlock/asp-dot-net-core-in-action-3e
Source code examples for ASP.NET Core in Action, Third Edition
|
|
|
yswenli/WebRedisManager
WebRedis Manager is a simple management to implement Redis using SAEA. RedisSocket, SAEA.MVC and running speed quickly.WebRedisManager是使用的SAEA.RedisSocket、SAEA.MVC等实现Redis的简便管理功能,轻松运行~
|
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0-preview.5.26302.115 | 112 | 6/9/2026 |
| 11.0.0-preview.4.26230.115 | 257 | 5/12/2026 |
| 11.0.0-preview.3.26207.106 | 365 | 4/14/2026 |
| 11.0.0-preview.2.26159.112 | 402 | 3/10/2026 |
| 11.0.0-preview.1.26104.118 | 297 | 2/10/2026 |
| 10.0.9 | 15,223 | 6/9/2026 |
| 10.0.8 | 86,632 | 5/12/2026 |
| 10.0.7 | 86,929 | 4/21/2026 |
| 10.0.6 | 32,294 | 4/14/2026 |
| 10.0.5 | 214,804 | 3/12/2026 |
| 10.0.4 | 14,555 | 3/10/2026 |
| 10.0.3 | 101,873 | 2/10/2026 |
| 10.0.2 | 608,057 | 1/13/2026 |
| 10.0.1 | 232,518 | 12/9/2025 |
| 9.0.17 | 425 | 6/9/2026 |
| 9.0.16 | 10,005 | 5/12/2026 |
| 9.0.15 | 26,834 | 4/14/2026 |
| 9.0.14 | 17,785 | 3/10/2026 |
| 9.0.13 | 13,930 | 2/10/2026 |
| 9.0.12 | 21,138 | 1/13/2026 |