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

Troubleshooting • Re: Trouble Creating A Systemd Service

$
0
0
Try changing your script to look like this

Code:

#!/usr/bin/bashcd /home/nickserver/RTSPtoWebRTCGO111MODULE=on go run *.go
also, that service file is running the command as root. It should probably run as your user (nickserver?)
Try adding a User= option, like this

Code:

[Unit]Wants=network.target[Service]ExecStart=/usr/local/bin/webrtc.shWorkingDirectory=/home/nickserver/RTSPtoWebRTCUser=nickserver[Install]WantedBy=multi-user.target

Statistics: Posted by rpdom — Sun Jan 28, 2024 8:24 am



Viewing all articles
Browse latest Browse all 5058

Trending Articles