I have virtual machine of Linux with Ubuntu 18. When I am running this command
sudo systemctl start myservice.service
● myservice.service - dummyservice in .NET Loaded: loaded (/lib/systemd/system/myservice.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2020-05-26 23:53:20 IST; 10min ago Process: 3634 ExecStart=/usr/bin/dotnet /home/linux/bin/Downloads/myservice.dll (code=exited, status=1/FAILURE) May 26 23:53:19 arvind systemd: Starting myservice in .NET... May 26 23:53:20 arvind dotnet: The user's home directory could not be determined. Set the 'DOTNET_CLI_HOME' environment variable to spec May 26 23:53:20 arvind systemd: myservice.service: Control process exited, code=exited status=1 May 26 23:53:20 arvind systemd: myservice.service: Failed with result 'exit-code'. May 26 23:53:20 arvind systemd: Failed to start myservice in .NET.
How can I set environment variable
'DOTNET_CLI_HOME' environment variable to spec ?