#!/bin/bash # Called when a stream stops publishing STREAM_NAME=$1 echo "[$(date)] Stream ended: $STREAM_NAME" >> /tmp/hls/stream.log