Skip to content

Commit

Permalink
Create howtoStartOnPi.md
Browse files Browse the repository at this point in the history
  • Loading branch information
brothercorvo authored Dec 13, 2023
1 parent ab223d5 commit 54ad939
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docs/docs/FreeTAKHub/Video/howtoStartOnPi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# How to autostart the video server on the Pi
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 &
```

0 comments on commit 54ad939

Please sign in to comment.