Skip to content

Commit

Permalink
Update apache-proxy.md (dotnet#4291)
Browse files Browse the repository at this point in the history
The example systemd unit file causes an error if copied directly and used as is (which a lot of first time users likely will).

Although the example service will run it will cause a systemd error because comments in systemd unit files need to be on a newline. In this case I've moved the comment to the line above. Now when you do `systemctl status kestrel-hellomvc.service` you won't see an error in the output.
  • Loading branch information
sysadmiral authored and scottaddie committed Sep 14, 2017
1 parent 029dd7f commit 498047e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aspnetcore/publishing/apache-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ An example service file for our application.
WorkingDirectory=/var/aspnetcore/hellomvc
ExecStart=/usr/local/bin/dotnet /var/aspnetcore/hellomvc/hellomvc.dll
Restart=always
RestartSec=10 # Restart service after 10 seconds if dotnet service crashes
# Restart service after 10 seconds if dotnet service crashes
RestartSec=10
SyslogIdentifier=dotnet-example
User=apache
Environment=ASPNETCORE_ENVIRONMENT=Production
Expand Down

0 comments on commit 498047e

Please sign in to comment.