Microsoft.Extensions.Hosting.Systemd
9.0.0-rc.1.24431.7
Prefix Reserved
See the version list below for details.
dotnet add package Microsoft.Extensions.Hosting.Systemd --version 9.0.0-rc.1.24431.7
NuGet\Install-Package Microsoft.Extensions.Hosting.Systemd -Version 9.0.0-rc.1.24431.7
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" Version="9.0.0-rc.1.24431.7" />
paket add Microsoft.Extensions.Hosting.Systemd --version 9.0.0-rc.1.24431.7
#r "nuget: Microsoft.Extensions.Hosting.Systemd, 9.0.0-rc.1.24431.7"
// Install Microsoft.Extensions.Hosting.Systemd as a Cake Addin #addin nuget:?package=Microsoft.Extensions.Hosting.Systemd&version=9.0.0-rc.1.24431.7&prerelease // Install Microsoft.Extensions.Hosting.Systemd as a Cake Tool #tool nuget:?package=Microsoft.Extensions.Hosting.Systemd&version=9.0.0-rc.1.24431.7&prerelease
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
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. |
.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 (>= 9.0.0-rc.1.24431.7)
-
net8.0
- Microsoft.Extensions.Hosting (>= 9.0.0-rc.1.24431.7)
-
net9.0
- Microsoft.Extensions.Hosting (>= 9.0.0-rc.1.24431.7)
NuGet packages (47)
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。 |
|
Carbon.Kit.Hosting
Provides feature to support hosting Carbon runtimes. |
GitHub repositories (23)
Showing the top 5 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)
|
|
yuzd/AntDeploy
Tools to deploy applications to remote server(iis,windowsService,linuxService,docker) support netframework and dotnetcore,support rollback and increment deploy
|
Version | Downloads | Last updated | |
---|---|---|---|
9.0.0-rc.2.24473.5 | 1,214 | 10/8/2024 | |
9.0.0-rc.1.24431.7 | 798 | 9/10/2024 | |
9.0.0-preview.7.24405.7 | 773 | 8/13/2024 | |
9.0.0-preview.6.24327.7 | 581 | 7/9/2024 | |
9.0.0-preview.5.24306.7 | 396 | 6/11/2024 | |
9.0.0-preview.4.24266.19 | 4,725 | 5/21/2024 | |
9.0.0-preview.3.24172.9 | 667 | 4/11/2024 | |
9.0.0-preview.2.24128.5 | 474 | 3/12/2024 | |
9.0.0-preview.1.24080.9 | 477 | 2/13/2024 | |
8.0.1 | 84,316 | 10/8/2024 | |
8.0.0 | 1,242,130 | 11/14/2023 | |
8.0.0-rc.2.23479.6 | 2,148 | 10/10/2023 | |
8.0.0-rc.1.23419.4 | 1,460 | 9/12/2023 | |
8.0.0-preview.7.23375.6 | 2,334 | 8/8/2023 | |
8.0.0-preview.6.23329.7 | 1,664 | 7/11/2023 | |
8.0.0-preview.5.23280.8 | 2,978 | 6/13/2023 | |
8.0.0-preview.4.23259.5 | 951 | 5/16/2023 | |
8.0.0-preview.3.23174.8 | 990 | 4/11/2023 | |
8.0.0-preview.2.23128.3 | 598 | 3/14/2023 | |
8.0.0-preview.1.23110.8 | 466 | 2/21/2023 | |
7.0.0 | 1,793,087 | 11/7/2022 | |
7.0.0-rc.2.22472.3 | 893 | 10/11/2022 | |
7.0.0-rc.1.22426.10 | 3,883 | 9/14/2022 | |
7.0.0-preview.7.22375.6 | 655 | 8/9/2022 | |
7.0.0-preview.6.22324.4 | 1,212 | 7/12/2022 | |
7.0.0-preview.5.22301.12 | 1,110 | 6/14/2022 | |
7.0.0-preview.4.22229.4 | 585 | 5/10/2022 | |
7.0.0-preview.3.22175.4 | 1,239 | 4/13/2022 | |
7.0.0-preview.2.22152.2 | 1,026 | 3/14/2022 | |
7.0.0-preview.1.22076.8 | 659 | 2/17/2022 | |
6.0.0 | 2,237,674 | 11/8/2021 | |
6.0.0-rc.2.21480.5 | 925 | 10/12/2021 | |
6.0.0-rc.1.21451.13 | 1,189 | 9/14/2021 | |
6.0.0-preview.7.21377.19 | 2,995 | 8/10/2021 | |
6.0.0-preview.6.21352.12 | 900 | 7/14/2021 | |
6.0.0-preview.5.21301.5 | 820 | 6/15/2021 | |
6.0.0-preview.4.21253.7 | 602 | 5/24/2021 | |
6.0.0-preview.3.21201.4 | 9,128 | 4/8/2021 | |
6.0.0-preview.2.21154.6 | 3,469 | 3/11/2021 | |
5.0.1 | 1,150,032 | 12/8/2020 | |
5.0.0 | 148,544 | 11/9/2020 | |
5.0.0-rc.2.20478.4 | 771 | 10/13/2020 | |
5.0.0-rc.1.20451.7 | 2,036 | 9/14/2020 | |
5.0.0-preview.8.20407.3 | 1,169 | 8/25/2020 | |
5.0.0-preview.7.20365.4 | 2,554 | 7/21/2020 | |
5.0.0-preview.6.20306.1 | 554 | 6/25/2020 | |
5.0.0-preview.5.20278.3 | 1,151 | 6/10/2020 | |
5.0.0-preview.4.20251.2 | 581 | 5/18/2020 | |
5.0.0-preview.3.20215.2 | 435 | 4/23/2020 | |
5.0.0-preview.2.20160.3 | 443 | 4/2/2020 | |
5.0.0-preview.1.20120.4 | 535 | 3/16/2020 | |
3.1.32 | 12,992 | 12/13/2022 | |
3.1.31 | 1,018 | 11/8/2022 | |
3.1.30 | 4,220 | 10/11/2022 | |
3.1.29 | 4,234 | 9/13/2022 | |
3.1.28 | 2,120 | 8/9/2022 | |
3.1.27 | 3,331 | 7/12/2022 | |
3.1.26 | 2,469 | 6/14/2022 | |
3.1.25 | 2,923 | 5/10/2022 | |
3.1.24 | 10,336 | 4/11/2022 | |
3.1.23 | 3,977 | 3/8/2022 | |
3.1.22 | 107,991 | 12/14/2021 | |
3.1.21 | 5,500 | 11/7/2021 | |
3.1.20 | 5,487 | 10/11/2021 | |
3.1.19 | 10,399 | 9/14/2021 | |
3.1.18 | 10,447 | 8/10/2021 | |
3.1.17 | 10,013 | 7/13/2021 | |
3.1.16 | 18,133 | 6/8/2021 | |
3.1.15 | 40,654 | 5/11/2021 | |
3.1.14 | 19,756 | 4/6/2021 | |
3.1.13 | 30,273 | 3/9/2021 | |
3.1.12 | 43,593 | 2/9/2021 | |
3.1.11 | 11,923 | 1/12/2021 | |
3.1.10 | 139,274 | 11/9/2020 | |
3.1.9 | 132,809 | 10/13/2020 | |
3.1.8 | 127,421 | 9/8/2020 | |
3.1.7 | 187,676 | 8/11/2020 | |
3.1.6 | 80,342 | 7/14/2020 | |
3.1.5 | 239,620 | 6/9/2020 | |
3.1.4 | 123,248 | 5/12/2020 | |
3.1.3 | 174,850 | 3/24/2020 | |
3.1.2 | 186,005 | 2/18/2020 | |
3.1.1 | 127,450 | 1/14/2020 | |
3.1.0 | 85,084 | 12/3/2019 | |
3.1.0-preview3.19553.2 | 728 | 11/13/2019 | |
3.1.0-preview2.19525.4 | 402 | 11/1/2019 | |
3.1.0-preview1.19506.1 | 781 | 10/15/2019 | |
3.0.3 | 1,349 | 2/18/2020 | |
3.0.2 | 1,367 | 1/14/2020 | |
3.0.1 | 20,254 | 11/18/2019 | |
3.0.0 | 98,624 | 9/23/2019 | |
3.0.0-rc1.19456.10 | 494 | 9/16/2019 | |
3.0.0-preview9.19423.4 | 688 | 9/4/2019 | |
3.0.0-preview8.19405.4 | 742 | 8/13/2019 | |
3.0.0-preview7.19362.4 | 2,814 | 7/23/2019 |