initial commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Retranslation of the RTMP stream '%I'
|
||||
After=mediamtx.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
NotifyAccess=all
|
||||
WatchdogSec=30
|
||||
Restart=always
|
||||
ExecStart=/usr/local/bin/h264-retranslate %i
|
||||
SuccessExitStatus=255
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=MediaMTX
|
||||
Requires=docker.service
|
||||
After=docker.service
|
||||
|
||||
[Service]
|
||||
TimeoutStartSec=0
|
||||
Restart=on-failure
|
||||
ExecStartPre=-/usr/bin/docker exec %n stop
|
||||
ExecStartPre=-/usr/bin/docker rm %n
|
||||
ExecStartPre=/usr/bin/docker pull bluenviron/mediamtx:latest
|
||||
ExecStart=/usr/bin/docker run --rm --name %n --network=host \
|
||||
-e TZ=Europe/Moscow \
|
||||
-v /etc/mediamtx.yml:/mediamtx.yml \
|
||||
-v /var/lib/mediamtx:/var/lib/mediamtx \
|
||||
bluenviron/mediamtx:latest
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user