Skip to content
Advertisement

Problem with a Golang webapp and system service

I am trying to create a Golang server using the gin framework on ubuntu. It works fine when it is executed in the terminal after building it with go build and equally works well locally.

Systemd

JavaScript

I got this error

JavaScript

Advertisement

Answer

Adding a working directory to the systemd fix this error.

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement