mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
update documentation
Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
This commit is contained in:
parent
f235ca5626
commit
15ce3671ac
1 changed files with 8 additions and 1 deletions
|
|
@ -16,7 +16,8 @@ Create a _systemd_ service:
|
||||||
```sh
|
```sh
|
||||||
sudo tee /etc/systemd/system/mediamtx.service >/dev/null << EOF
|
sudo tee /etc/systemd/system/mediamtx.service >/dev/null << EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Wants=network.target
|
After=network-online.target
|
||||||
|
Wants=network-online.target
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/local/bin/mediamtx /usr/local/etc/mediamtx.yml
|
ExecStart=/usr/local/bin/mediamtx /usr/local/etc/mediamtx.yml
|
||||||
[Install]
|
[Install]
|
||||||
|
|
@ -24,6 +25,12 @@ WantedBy=multi-user.target
|
||||||
EOF
|
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:
|
If SELinux is enabled (for instance in case of RedHat, Rocky, CentOS++), add correct security context:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue