Update README.md

edit system unit
This commit is contained in:
M0VUB 2022-01-10 14:12:11 +00:00 committed by GitHub
parent 514fb70296
commit 9a553c9aae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,13 @@ cd ambed-debian-installer
``` ```
4. Reboot after installation is complete. 4. Reboot after installation is complete.
### Edit AMBEd system unit for LocalHost
5. If you are running this transcoder on the same LocalHost as XLXd then there is no need to edit. If running AMBED on a remote site then you will need to include
your local IP address in the system unit file. Change the default 127.0.0.1 to your LOCAL IP etc 192.168.1........ otherwise trancoding will not work.
```sh
nano /etc/systemd/system/ambed.service
```
### To interact with AMBEd after installation: ### To interact with AMBEd after installation:
```sh ```sh
systemctl start|stop|status|restart ambed systemctl start|stop|status|restart ambed
@ -31,13 +38,13 @@ systemctl start|stop|status|restart ambed
- Logs are via systemctl status - Logs are via systemctl status
### Watchdog for AMBEd ### Watchdog for AMBEd
5. Install additional tools. Assuming you are still in the ambed-debian-installer dir.. 6. Install additional tools. Assuming you are still in the ambed-debian-installer dir..
```sh ```sh
cd templates cd templates
cp watchdog /ambed/watchdog cp watchdog /ambed/watchdog
chmod 0755 /ambed/watchdog chmod 0755 /ambed/watchdog
``` ```
6. You can run the watchdog every 5 mins with a cron job 7. You can run the watchdog every 5 mins with a cron job
```sh ```sh
*/5 * * * * /ambed/./watchdog >> /ambed/watchdog.log */5 * * * * /ambed/./watchdog >> /ambed/watchdog.log
``` ```