add instructions about SELinux distributions (#3673)

This commit is contained in:
Idar Lund 2024-10-07 21:08:05 +02:00 committed by GitHub
parent 823f6c60a0
commit 51e5f9ca26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -1708,6 +1708,13 @@ WantedBy=multi-user.target
EOF
```
If SELinux is enabled (for instance in case of RedHat, Rocky, CentOS++), add correct security context:
```sh
semanage fcontext -a -t bin_t /usr/local/bin/mediamtx
restorecon -Fv /usr/local/bin/mediamtx
```
Enable and start the service:
```sh