I have a go project and when I compile it I get your typical binary. If I call the binary directly from the command line with the adequate inputs, it runs perfectly well. I want to make this program part of the systemd ecosystem though and the following is my binary.service
[Unit]
Description=Run Go Service
[Service]
WorkingDirectory=/path/to/directory/
ExecStart=/path/to/directory/binary --config /full/path/to/service.conf
Restart=always
[Install]
WantedBy=multi-user.target
I can start and stop the service using the usual call sudo service application start. I don't receive any error messages but when I check journalctl -xe it says the start failed but it gives no details as to why. If I run the exact same command through the command line and not through systemd, the application runs just fine. How do I troubleshoot this?