fixed bug in linuxproduction systemd service. some other minor changes for consistency, clarity.
parent
0d15615591
commit
935584ea6a
|
@ -140,7 +140,7 @@ An example service file for our application.
|
|||
```
|
||||
|
||||
> [!NOTE]
|
||||
> **User** -- If *apache* is not used by your configuration, the user defined here must be created first and given proper ownership for files
|
||||
> **User** -- If the user *apache* is not used by your configuration, the user defined here must be created first and given proper ownership for files
|
||||
|
||||
Save the file and enable the service.
|
||||
|
||||
|
|
|
@ -20,5 +20,6 @@ ms.prod: aspnet-core
|
|||
- [Publishing to an Azure Web App with Continuous Deployment](azure-continuous-deployment.md)
|
||||
- [🔧 Publishing to a Windows Virtual Machine on Azure](azure-windows-vm.md)
|
||||
- [Publish to a Docker Image](https://azure.microsoft.com/documentation/articles/vs-azure-tools-docker-hosting-web-apps-in-docker)
|
||||
- [Publish to a Linux Production Environment (using nginx)](linuxproduction.md)
|
||||
- [Publish to a Linux Production Environment (Nginx on Ubuntu)](linuxproduction.md)
|
||||
- [Publish to a Linux Production Environment (Apache on CentOS)](apache-proxy.md)
|
||||
- [Use VSTS to Build and Publish to an Azure Web App with Continuous Deployment](vsts-continuous-deployment.md)
|
|
@ -106,10 +106,10 @@ An example service file for our application.
|
|||
|
||||
```text
|
||||
[Unit]
|
||||
Description=Example .NET Web API Application running on CentOS 7
|
||||
Description=Example .NET Web API Application running on Ubuntu
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/dotnet /var/aspnetcore/hellomvc/hellomvc.dll
|
||||
ExecStart=/usr/bin/dotnet /var/aspnetcore/hellomvc/hellomvc.dll
|
||||
Restart=always
|
||||
RestartSec=10 # Restart service after 10 seconds if dotnet service crashes
|
||||
SyslogIdentifier=dotnet-example
|
||||
|
@ -120,7 +120,8 @@ An example service file for our application.
|
|||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
>note **User** If *www-data* is not used by your configuration, the user defined here must be created first and given proper ownership for files
|
||||
> [!NOTE]
|
||||
> **User** -- If the user *www-data* is not used by your configuration, the user defined here must be created first and given proper ownership for files
|
||||
|
||||
Save the file and enable the service.
|
||||
|
||||
|
|
Loading…
Reference in New Issue