0

I have a .NET Core application (self contained) which I’ve copied to the folder "/home/ubuntu/TimberApi" in an Ubuntu LightSail instance. I am trying to start it as a service. It is complaining that the unit file is invalid. Can anyone spot an error in the file?

This is the contents of the service file:

 
				
Description=Timber Store Api

[Service]
WorkingDirectory=/home/ubuntu/TimberApi
ExecStart=/home/ubuntu/TimberApi/TimberStore.Api
Restart=always
RestartSec=10
SyslogIdentifier=offershare-web-app
Environment=ASPNETCORE_ENVIRONMENT=Production

[Install]
WantedBy=multi-user.target

Here is the error:

Failed to start TimberStoreApi.service: Unit TimberStoreApi.service has a bad unit file setting. See system logs and ‘systemctl status TimberStoreApi.service’ for details.