FreeTAKTeam/FreeTAKServer-User-Docs

Solution: rtsp-simple-server ---Auto-Start on rap pi Start/Reboot

Marshmellow84 opened this issue · 1 comments

Hardware: Raspberry Pi 4b- 8g
OS: Ubuntu Server 22.04 lts
Program: rtsp-simple-server

--------------When trying to accomplish Auto start on system startup/reboot, Solution:
For the .service file, you will need to add and edit the following:

[Unit]
Description=rtsp-simple-server
After=network-online.target
Wants=netowrk-online.target

[Service]
ExecStart=/usr/local/bin/rtsp-simple-server /usr/local/etc/rtsp-simple-server.yml

[Install]
WantedBy=multi-user.target

-------------To build the auto start file, the Solution:
The root user is needed--- sudo -i

Build your file:
---crontab -e (if this is new, select 1 when prompted)

------at the end of the file add the 3 @ lines

@reboot sudo systemctl enable rtsp-simple-server &

@reboot sudo systemctl stop rtsp-simple-server &

@reboot nohup sudo rtsp-simple-server &

moved to the docs