Skip to content

Commit

Permalink
Add systemd configuration file for BenchmarksServer
Browse files Browse the repository at this point in the history
- configuration used on asp-perf-linux; see /etc/systemd/system/
  • Loading branch information
dougbu committed Aug 15, 2017
1 parent bdfdf20 commit f7915f5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions scripts/aspnet.benchmarks.service
@@ -0,0 +1,19 @@
[Unit]
Description=ASP.NET Core Benchmarks Server

# Start after network starts initializing; stop before network is stopped
After=network.target

[Service]
Environment=NUGET_PACKAGES=/home/aspnet/.nuget/packages
Environment=NUGET_HTTP_CACHE_PATH=/home/aspnet/.local/share/NuGet/v3-cache
ExecStart=/home/aspnet/.dotnet/dotnet bin/Debug/netcoreapp2.0/BenchmarksServer.dll --hostname 10.0.0.102

Restart=on-failure
RestartSec=5

User=aspnet
WorkingDirectory=/home/aspnet/src/benchmarks/src/BenchmarksServer

[Install]
WantedBy=multi-user.target

0 comments on commit f7915f5

Please sign in to comment.