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