[Unit] Description=TradeIdeasWebService .NET Web API App [Service] WorkingDirectory=/ti/dotnet_services/web/MicroProxyWebService RuntimeDirectory=MicroProxyWebService ExecStart=/usr/bin/dotnet /ti/dotnet_services/web/MicroProxyWebService/TradeIdeasWebService.dll Restart=always # Restart service after 10 seconds if the dotnet service crashes: RestartSec=10 KillSignal=SIGINT SyslogIdentifier=dotnet-TradeIdeasWebService User=tradeideas PIDFile=/ti/dotnet_services/web/MicroProxyWebService/TradeIdeasWebService.pid Environment=ASPNETCORE_ENVIRONMENT=Production Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false Environment=ASPNETCORE_URLS=http://localhost:5001 [Install] WantedBy=multi-user.target