#!/usr/bin/env bash ########################################################################### ## Copyright (C) Wizardry and Steamworks 2025 - License: MIT ## ########################################################################### /opt/dotnet/dotnet /opt/nextpvr/NextPVRServer.dll & if [ ! -x /config/scripts/PostProcessing.sh ]; then cp /usr/local/share/nextpvr/PostProcessing.sh /config/scripts/ fi # terminate container when any process spawned by this shell in the background terminates for JOB in `jobs -p`; do (lsof -p $JOB +r 1 &>/dev/null; kill -s TERM 1) & done sleep infinity