Configure Supervisor
[program:hellowebapp]command =dotnet run directory =/home/python/dotnet/myweb/ MYWEBAPI environment =aspnetcore_ _environment=production user =root stopsignal =intautostart =true AutoRestart =true Startsecs =1 Stderr_logfile =/< Span style= "COLOR: #0000ff" >var /log/hellowebapp.err.log stdout_logfile =/var /log/hellowebapp. out . Log
When you start supervisor,
The error log is as follows:
[Email protected]:~/dotnet/myweb/mywebapi$ sudo service supervisor Stop[email protected]:~/dotnet/myweb/mywebapi$ sudo service supervisor start[email protected]:~/dotnet/myweb/mywebapi$cat/var/log/ HelloWebApp.err.logSystem.ArgumentNullException:Value cannot benull. Parameter name:path1 at System.IO.Path.Combine (string path1, String path2) at Microsoft.DotNet.Configurer.CliFallback Folderpathcalculator.get_dotnetuserprofilefolderpath () at Microsoft.DotNet.Configurer.FirstTimeUseNoticeSentinel .. ctor (Clifallbackfolderpathcalculator clifallbackfolderpathcalculator) at Microsoft.DotNet.Cli.Program.ProcessArgs (string[] args, Itelemetry telemetryclient) at Microsoft.DotNet.Cli.Program.Main (string[] args) System.ArgumentNullException:Value cannot be null. Parameter name:path1 at System.IO.Path.Combine (string path1, String path2) at Microsoft.DotNet.Configurer.CliFallback Folderpathcalculator.get_dotnetuserprofilefolderpath () at Microsoft.DotNet.Configurer.FirstTimeUseNoticeSentinel .. ctor (Clifallbackfolderpathcalculator clifallbackfolderpathcalculator) at Microsoft.DotNet.Cli.Program.ProcessArgs (string[] args, Itelemetry telemetryclient) at Microsoft.DotNet.Cli.Program.Main (string[] args)
Reason not yet found
". Netcore learning". Netcore Add to Supervisor Daemon Auto-start error