move supervisor to docs

This commit is contained in:
jonathan 2021-06-04 13:19:09 +02:00
parent 9515e28bb7
commit 7418f2be18
4 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
**ffplayout-engine Installation** **ffplayout_engine Installation**
================ ================
Here are a description on how to install *ffplayout engine* on a standard Linux server. Here are a description on how to install *ffplayout engine* on a standard Linux server.
@ -13,8 +13,8 @@ Installation
----- -----
- install **ffmpeg**, **ffprobe** (and **ffplay** if you need the preview mode) - install **ffmpeg**, **ffprobe** (and **ffplay** if you need the preview mode)
- clone repo to **/opt/**: `git clone https://github.com/ffplayout/ffplayout-engine.git` - clone repo to **/opt/**: `git clone https://github.com/ffplayout/ffplayout_engine.git`
- `cd /opt/ffplayout-engine` - `cd /opt/ffplayout_engine`
- create virtual environment: `virtualenv -p python3 venv` - create virtual environment: `virtualenv -p python3 venv`
- run `source ./venv/bin/activate` - run `source ./venv/bin/activate`
- install dependencies: `pip3 install -r requirements.txt` - install dependencies: `pip3 install -r requirements.txt`
@ -28,27 +28,27 @@ Single Channel Setup
**systemd** is required **systemd** is required
- copy **docs/ffplayout-engine.service** to **/etc/systemd/system/** - copy **docs/ffplayout_engine.service** to **/etc/systemd/system/**
- copy **ffplayout.yml** to **/etc/ffplayout/** - copy **ffplayout.yml** to **/etc/ffplayout/**
- change user and group in service file (for example to **www-data**) - change user and group in service file (for example to **www-data**)
- activate service: `sudo systemctl enable ffplayout-engine` - activate service: `sudo systemctl enable ffplayout_engine`
- edit **/etc/ffplayout/ffplayout.yml** - edit **/etc/ffplayout/ffplayout.yml**
- when playlists are exists, run service: `sudo systemctl start ffplayout-engine` - when playlists are exists, run service: `sudo systemctl start ffplayout_engine`
Multi Channel Setup Multi Channel Setup
----- -----
- copy **docs/ffplayout-engine-multichannel.service** to **/etc/systemd/system/** - copy **docs/ffplayout_engine-multichannel.service** to **/etc/systemd/system/**
- change user and group in service file (for example to **www-data**) - change user and group in service file (for example to **www-data**)
- copy **ffplayout.yml** to **/etc/ffplayout/ffplayout-001.yml** - copy **ffplayout.yml** to **/etc/ffplayout/ffplayout-001.yml**
- copy **supervisor** folder to **/etc/ffplayout/** - copy **docs/supervisor** folder to **/etc/ffplayout/**
- every channel needs its own engine config **ffplayout-002.yml**, **ffplayout-003.yml**, etc. - every channel needs its own engine config **ffplayout-002.yml**, **ffplayout-003.yml**, etc.
- every channel needs also its own service file under **/etc/ffplayout/supervisor/config.d** - every channel needs also its own service file under **/etc/ffplayout/supervisor/config.d**
- create for every channel a subfolder for logging: **/var/log/ffplayout/channel-001**, **/var/log/ffplayout/channel-002**, etc. - create for every channel a subfolder for logging: **/var/log/ffplayout/channel-001**, **/var/log/ffplayout/channel-002**, etc.
- edit **/etc/ffplayout/ffplayout-00*.yml** - edit **/etc/ffplayout/ffplayout-00*.yml**
- when you want to use the web frontend, create only the first channel and the other ones in the frontend - when you want to use the web frontend, create only the first channel and the other ones in the frontend
- activate service: `sudo systemctl enable ffplayout-engine-multichannel` - activate service: `sudo systemctl enable ffplayout_engine-multichannel`
- when playlists are exists, run service: `sudo systemctl start ffplayout-engine-multichannel` - when playlists are exists, run service: `sudo systemctl start ffplayout_engine-multichannel`
Using it Without Installation Using it Without Installation
----- -----