Microsoft.Extensions.Hosting.Systemd 10.0.0-preview.2.25163.2

Prefix Reserved
This is a prerelease version of Microsoft.Extensions.Hosting.Systemd.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Microsoft.Extensions.Hosting.Systemd --version 10.0.0-preview.2.25163.2
                    
NuGet\Install-Package Microsoft.Extensions.Hosting.Systemd -Version 10.0.0-preview.2.25163.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" Version="10.0.0-preview.2.25163.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Extensions.Hosting.Systemd" Version="10.0.0-preview.2.25163.2" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.Extensions.Hosting.Systemd --version 10.0.0-preview.2.25163.2
                    
#r "nuget: Microsoft.Extensions.Hosting.Systemd, 10.0.0-preview.2.25163.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Microsoft.Extensions.Hosting.Systemd&version=10.0.0-preview.2.25163.2&prerelease
                    
Install Microsoft.Extensions.Hosting.Systemd as a Cake Addin
#tool nuget:?package=Microsoft.Extensions.Hosting.Systemd&version=10.0.0-preview.2.25163.2&prerelease
                    
Install Microsoft.Extensions.Hosting.Systemd as a Cake Tool

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.SystemdNotifier
  • Microsoft.Extensions.Hosting.Systemd.SystemdLifetime
  • Microsoft.Extensions.Hosting.SystemdHostBuilderExtensions

Additional Documentation

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 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. 
.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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (49)

Showing the top 5 NuGet packages that depend on Microsoft.Extensions.Hosting.Systemd:

Package Downloads
Ahsoka.Core

Package Description

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.

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

MeiChen.WebApi.Kernel

快速构建一个标准化的webapi应用。 Quickly build a standard webapi application。

TJC.Cyclops.Web.Core

企服版框架中api核心功能项目

GitHub repositories (26)

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 ↓
ariacom/Seal-Report
Database Reporting Tool and Tasks (.Net)
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.
genielabs/HomeGenie
HomeGenie, the programmable automation intelligence
Texnomic/SecureDNS
Secure, Modern, Fully-Featured, All-In-One Cross-Architecture & Cross-Platform DNS Server Using .NET 8.0
RapidScada/scada-v6
Contains Rapid SCADA 6 source code
andrewlock/asp-dot-net-core-in-action-2e
Source code examples for ASP.NET Core in Action, Second Edition
shr670377723/CommunityServer-master
LANCommander/LANCommander
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的简便管理功能,轻松运行~
ThingsGateway/ThingsGateway
ThingsGateway is a cross platform high-performance edge acquisition gateway based on Net8, providing underlying PLC communication libraries, communication debugging software, and more.
buraksenyurt/skynet
Some kinds of programming tutorials on MacOS/Windows/Linux. There are 41 sample applications.
andrewlock/asp-dot-net-core-in-action-3e
Source code examples for ASP.NET Core in Action, Third Edition
AniAPI-Team/AniAPI
Core behind AniAPI HTTP Rest APIs.
Version Downloads Last updated
10.0.0-preview.3.25171.5 167 4/10/2025
10.0.0-preview.2.25163.2 395 3/18/2025
10.0.0-preview.1.25080.5 733 2/25/2025
9.0.4 2,616 4/8/2025
9.0.3 46,484 3/11/2025
9.0.2 56,239 2/11/2025
9.0.1 86,466 1/14/2025
9.0.0 109,987 11/12/2024
9.0.0-rc.2.24473.5 2,154 10/8/2024
9.0.0-rc.1.24431.7 999 9/10/2024
9.0.0-preview.7.24405.7 1,047 8/13/2024
9.0.0-preview.6.24327.7 628 7/9/2024
9.0.0-preview.5.24306.7 424 6/11/2024
9.0.0-preview.4.24266.19 5,086 5/21/2024
9.0.0-preview.3.24172.9 692 4/11/2024
9.0.0-preview.2.24128.5 493 3/12/2024
9.0.0-preview.1.24080.9 508 2/13/2024
8.0.1 509,484 10/8/2024
8.0.0 1,694,424 11/14/2023
8.0.0-rc.2.23479.6 2,204 10/10/2023
8.0.0-rc.1.23419.4 1,517 9/12/2023
8.0.0-preview.7.23375.6 2,356 8/8/2023
8.0.0-preview.6.23329.7 1,684 7/11/2023
8.0.0-preview.5.23280.8 3,154 6/13/2023
8.0.0-preview.4.23259.5 1,084 5/16/2023
8.0.0-preview.3.23174.8 1,178 4/11/2023
8.0.0-preview.2.23128.3 621 3/14/2023
8.0.0-preview.1.23110.8 497 2/21/2023
7.0.0 2,242,289 11/7/2022
7.0.0-rc.2.22472.3 929 10/11/2022
7.0.0-rc.1.22426.10 3,911 9/14/2022
7.0.0-preview.7.22375.6 687 8/9/2022
7.0.0-preview.6.22324.4 1,248 7/12/2022
7.0.0-preview.5.22301.12 1,139 6/14/2022
7.0.0-preview.4.22229.4 618 5/10/2022
7.0.0-preview.3.22175.4 1,267 4/13/2022
7.0.0-preview.2.22152.2 1,060 3/14/2022
7.0.0-preview.1.22076.8 691 2/17/2022
6.0.1 5,625 11/12/2024
6.0.0 2,406,955 11/8/2021
6.0.0-rc.2.21480.5 958 10/12/2021
6.0.0-rc.1.21451.13 1,223 9/14/2021
6.0.0-preview.7.21377.19 3,034 8/10/2021
6.0.0-preview.6.21352.12 947 7/14/2021
6.0.0-preview.5.21301.5 853 6/15/2021
6.0.0-preview.4.21253.7 630 5/24/2021
6.0.0-preview.3.21201.4 9,513 4/8/2021
6.0.0-preview.2.21154.6 3,572 3/11/2021 6.0.0-preview.2.21154.6 is deprecated because it is no longer maintained.
5.0.1 1,177,673 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 155,773 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20478.4 820 10/13/2020 5.0.0-rc.2.20478.4 is deprecated because it is no longer maintained.
5.0.0-rc.1.20451.7 2,089 9/14/2020 5.0.0-rc.1.20451.7 is deprecated because it is no longer maintained.
5.0.0-preview.8.20407.3 1,245 8/25/2020 5.0.0-preview.8.20407.3 is deprecated because it is no longer maintained.
5.0.0-preview.7.20365.4 2,605 7/21/2020 5.0.0-preview.7.20365.4 is deprecated because it is no longer maintained.
5.0.0-preview.6.20306.1 597 6/25/2020 5.0.0-preview.6.20306.1 is deprecated because it is no longer maintained.
5.0.0-preview.5.20278.3 1,195 6/10/2020 5.0.0-preview.5.20278.3 is deprecated because it is no longer maintained.
5.0.0-preview.4.20251.2 630 5/18/2020 5.0.0-preview.4.20251.2 is deprecated because it is no longer maintained.
5.0.0-preview.3.20215.2 483 4/23/2020 5.0.0-preview.3.20215.2 is deprecated because it is no longer maintained.
5.0.0-preview.2.20160.3 489 4/2/2020 5.0.0-preview.2.20160.3 is deprecated because it is no longer maintained.
5.0.0-preview.1.20120.4 584 3/16/2020 5.0.0-preview.1.20120.4 is deprecated because it is no longer maintained.
3.1.32 15,812 12/13/2022
3.1.31 1,113 11/8/2022
3.1.30 4,974 10/11/2022
3.1.29 4,308 9/13/2022
3.1.28 2,197 8/9/2022
3.1.27 3,455 7/12/2022
3.1.26 2,546 6/14/2022
3.1.25 3,048 5/10/2022
3.1.24 11,064 4/11/2022
3.1.23 4,076 3/8/2022
3.1.22 136,313 12/14/2021
3.1.21 5,824 11/7/2021
3.1.20 5,634 10/11/2021
3.1.19 10,487 9/14/2021
3.1.18 10,775 8/10/2021
3.1.17 10,221 7/13/2021
3.1.16 18,783 6/8/2021
3.1.15 40,955 5/11/2021
3.1.14 20,609 4/6/2021
3.1.13 31,258 3/9/2021
3.1.12 44,241 2/9/2021
3.1.11 12,136 1/12/2021
3.1.10 141,584 11/9/2020
3.1.9 137,267 10/13/2020
3.1.8 129,733 9/8/2020
3.1.7 194,124 8/11/2020
3.1.6 81,295 7/14/2020
3.1.5 248,809 6/9/2020
3.1.4 125,012 5/12/2020
3.1.3 182,044 3/24/2020
3.1.2 190,917 2/18/2020
3.1.1 132,117 1/14/2020
3.1.0 87,470 12/3/2019
3.1.0-preview3.19553.2 779 11/13/2019 3.1.0-preview3.19553.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19525.4 454 11/1/2019 3.1.0-preview2.19525.4 is deprecated because it is no longer maintained.
3.1.0-preview1.19506.1 834 10/15/2019 3.1.0-preview1.19506.1 is deprecated because it is no longer maintained.
3.0.3 1,474 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 1,460 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.1 21,210 11/18/2019 3.0.1 is deprecated because it is no longer maintained.
3.0.0 101,798 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19456.10 549 9/16/2019 3.0.0-rc1.19456.10 is deprecated because it is no longer maintained.
3.0.0-preview9.19423.4 738 9/4/2019 3.0.0-preview9.19423.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.4 802 8/13/2019 3.0.0-preview8.19405.4 is deprecated because it is no longer maintained.
3.0.0-preview7.19362.4 3,052 7/23/2019 3.0.0-preview7.19362.4 is deprecated because it is no longer maintained.