Skip to content

Commit

Permalink
Make service systemd-aware
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusWichelmann committed Aug 15, 2022
1 parent ad1c2d3 commit 5e9ddd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/SolarEdgeExporter/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static void Main(string[] args)
}

public static IHostBuilder CreateHostBuilder(string[] args)
=> Host.CreateDefaultBuilder(args).ConfigureWebHostDefaults(webBuilder => {
=> Host.CreateDefaultBuilder(args).UseSystemd().ConfigureWebHostDefaults(webBuilder => {
webBuilder.UseStartup<Startup>();
});
}
Expand Down
1 change: 1 addition & 0 deletions src/SolarEdgeExporter/SolarEdgeExporter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<PackageReference Include="FluentModbus" Version="3.1.0" />
<PackageReference Include="Hellang.Middleware.ProblemDetails" Version="5.4.0" />
<PackageReference Include="InfluxDB.Client" Version="4.4.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" Version="6.0.0" />
<PackageReference Include="RecursiveDataAnnotationsValidation" Version="1.1.1" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.1.4" />
</ItemGroup>
Expand Down

0 comments on commit 5e9ddd0

Please sign in to comment.