mirror of
https://github.com/aler9/rtsp-simple-server
synced 2026-04-22 23:17:11 +08:00
update documentation
Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user