Add Systemd support
This commit is contained in:
parent
f47f12eb94
commit
a12471c9e5
2 changed files with 3 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ using Microsoft.AspNetCore.Hosting;
|
|||
using Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
||||
using pdns_dhcp.Connections;
|
||||
using pdns_dhcp.Dhcp;
|
||||
|
|
@ -19,6 +20,7 @@ using pdns_dhcp.Services;
|
|||
using Stl.Interception;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Services.AddSystemd();
|
||||
|
||||
builder.Services.Configure<DhcpOptions>(builder.Configuration.GetRequiredSection("Dhcp"));
|
||||
builder.Services.Configure<PowerDnsOptions>(builder.Configuration.GetRequiredSection("PowerDns"));
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
<PackageReference Include="DotNext.Threading" Version="4.15.2" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.0" PrivateAssets="all" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" Version="8.0.0" />
|
||||
<PackageReference Include="Sep" Version="0.3.0" />
|
||||
<PackageReference Include="Stl.Generators" Version="6.8.11" PrivateAssets="all" />
|
||||
<PackageReference Include="Stl.Interception" Version="6.8.11" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue