update documentation

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
This commit is contained in:
Troy Ihmels 2025-11-07 12:13:44 -08:00 committed by GitHub
parent f235ca5626
commit 15ce3671ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,7 +16,8 @@ Create a _systemd_ service:
```sh
sudo tee /etc/systemd/system/mediamtx.service >/dev/null << EOF
[Unit]
Wants=network.target
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/usr/local/bin/mediamtx /usr/local/etc/mediamtx.yml
[Install]
@ -24,6 +25,12 @@ WantedBy=multi-user.target
EOF
```
Enable a _wait-online_ service to make sure that _MediaMTX_ is started after network has been properly initialized:
```sh
sudo systemctl enable systemd-networkd-wait-online.service
```
If SELinux is enabled (for instance in case of RedHat, Rocky, CentOS++), add correct security context:
```sh