Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
I run it as "./mediamtx" but I want to run it in the background because I connect it to the raspberry pi with ssh and when I do "./mediamtx &" it even uses the terminal etc. I want it to run directly when the raspberry pi is turned on, so I added it to "rc.local" but I don't know if I am adding it correctly, how can I do it?
GNU nano 5.4 /etc/rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
sudo /home/pi/mediamtx_v1/mediamtx &
exit 0
This issue is being automatically closed because it does not follow the issue template.
Please reopen the issue and make sure to include all sections of the template.
How can I run it in the background in Linux?
I run it as "./mediamtx" but I want to run it in the background because I connect it to the raspberry pi with ssh and when I do "./mediamtx &" it even uses the terminal etc. I want it to run directly when the raspberry pi is turned on, so I added it to "rc.local" but I don't know if I am adding it correctly, how can I do it?