Compare commits
2 Commits
a192a01291
...
067ccb5b3b
Author | SHA1 | Date |
---|---|---|
|
067ccb5b3b | |
|
136ec78138 |
|
@ -3,9 +3,9 @@ volumes:
|
||||||
metadatabase:
|
metadatabase:
|
||||||
library:
|
library:
|
||||||
driver_opts:
|
driver_opts:
|
||||||
type: ${LIBRARY_VOLUME_TYPE}
|
type: "${LIBRARY_VOLUME_TYPE:-local}"
|
||||||
o: ${LIBRARY_VOLUME_OPTIONS}
|
o: "${LIBRARY_VOLUME_OPTIONS:-defaults}"
|
||||||
device: ${LIBRARY_VOLUME_DEVICE}
|
device: "${LIBRARY_VOLUME_DEVICE:-/var/tmp/whatever}"
|
||||||
services:
|
services:
|
||||||
liquidsoap:
|
liquidsoap:
|
||||||
image: icedream/liquidsoap
|
image: icedream/liquidsoap
|
||||||
|
@ -46,11 +46,11 @@ services:
|
||||||
# HACK - haven't quite figured out the ports SRT/NDI use
|
# HACK - haven't quite figured out the ports SRT/NDI use
|
||||||
network_mode: host
|
network_mode: host
|
||||||
command:
|
command:
|
||||||
- /usr/local/bin/tunaposter
|
- '/usr/local/bin/tunaposter'
|
||||||
# tuna source URL
|
# tuna source URL
|
||||||
- ${TUNA_SOURCE_URL}
|
- '${TUNA_SOURCE_URL:-http://localhost}'
|
||||||
# liquidsoap metadata API URL
|
# liquidsoap metadata API URL
|
||||||
- http://127.0.0.1:21338
|
- 'http://127.0.0.1:21338'
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
|
|
@ -16,7 +16,18 @@ shutdown_ffmpeg() {
|
||||||
if is_ffmpeg_running
|
if is_ffmpeg_running
|
||||||
then
|
then
|
||||||
kill "$ffmpeg_pid" || true
|
kill "$ffmpeg_pid" || true
|
||||||
wait "$ffmpeg_pid" || true
|
for t in $(seq 0 10)
|
||||||
|
do
|
||||||
|
if ! kill -0 "$ffmpeg_pid"
|
||||||
|
then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
if kill -0 "$ffmpeg_pid"
|
||||||
|
then
|
||||||
|
kill -9 "$ffmpeg_pid" || true
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
ffmpeg_pid=
|
ffmpeg_pid=
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue