Try changing your script to look like thisalso, 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:
#!/usr/bin/bashcd /home/nickserver/RTSPtoWebRTCGO111MODULE=on go run *.go
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