Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3847

Troubleshooting • Re: Trouble Creating A Systemd Service

$
0
0
Running

Code:

journalctl -f -u webrtc.service
gives me the following:

Code:

Started webrtc.service.webrtc.service: Failed to locate executable GO111MODULE=on: No such file or directorywebrtc.service: Failed at step EXEC spawning GO111MODULE=on: No such file or directorywebrtc.service: Main process exited, code=exited, status=203/EXECwebrtc.service: Failed with result 'exit-code'. 

I tried adding the environment as you suggested:

Code:

sudo tee /etc/systemd/system/webrtc.service >/dev/null << EOF[Unit]Wants=network.target[Service]ExecStart=go run *.goWorkingDirectory=/home/nickserver/RTSPtoWebRTCEnvironment=GO111MODULE=on[Install]WantedBy=multi-user.targetEOF
and the result was the following errors:

Code:

webrtc.service: Main process exited, code=exited, status=203/EXECwebrtc.service: Failed with result 'exit-code'.Started webrtc.service.stat *.go: no such file or directorywebrtc.service: Main process exited, code=exited, status=1/FAILUREwebrtc.service: Failed with result 'exit-code'.Started webrtc.service.stat *.go: no such file or directorywebrtc.service: Main process exited, code=exited, status=1/FAILUREwebrtc.service: Failed with result 'exit-code'.
Thanks for your help

Statistics: Posted by Yahoo Kazooie — Sat Jan 27, 2024 8:25 am



Viewing all articles
Browse latest Browse all 3847

Trending Articles