From e9f27899a661107d3c96cffe6d1adb65ad5c6f00 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 10 Oct 2023 07:00:43 +0200 Subject: [PATCH 1/2] fix: Shutdown counter --- run/power.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/run/power.sh b/run/power.sh index 31022a2..8702049 100644 --- a/run/power.sh +++ b/run/power.sh @@ -55,8 +55,6 @@ _graceful_shutdown() { if ((AGENT_VERSION < 2)); then - echo && info "Please update the VirtualDSM Agent to allow for gracefull shutdowns..." - kill -15 "$(cat "${_QEMU_PID}")" pkill -f qemu-system-x86_64 || true @@ -72,7 +70,7 @@ _graceful_shutdown() { if echo 'info version'| nc -q 1 -w 1 localhost "${QEMU_MONPORT}" >/dev/null 2>&1 ; then sleep 1 - #info "Shutting down, waiting... ($(cat ${_QEMU_SHUTDOWN_COUNTER})/${QEMU_POWERDOWN_TIMEOUT})" + [[ "${DEBUG}" == [Yy1]* ]] && info "Shutting down, waiting... ($(cat ${_QEMU_SHUTDOWN_COUNTER})/${QEMU_POWERDOWN_TIMEOUT})" fi From 8d8efeb3418a8b9e9f8db35210209f0fecdbe354 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 10 Oct 2023 07:34:44 +0200 Subject: [PATCH 2/2] docs: Readme --- readme.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 333239a..5d8acea 100644 --- a/readme.md +++ b/readme.md @@ -17,7 +17,7 @@ Virtual DSM in a docker container. - Multi-platform - KVM acceleration - GPU passthrough - - Graceful shutdown + - Graceful shutdowns - Upgrades supported ## Usage @@ -173,7 +173,7 @@ docker run -it --rm -p 5000:5000 --device=/dev/kvm --cap-add NET_ADMIN --stop-ti * ### How do I passthrough my GPU? - To enable this feature, add the following lines to your compose file: + To passthrough your GPU, add the following lines to your compose file: ```yaml environment: @@ -181,6 +181,8 @@ docker run -it --rm -p 5000:5000 --device=/dev/kvm --cap-add NET_ADMIN --stop-ti devices: - /dev/dri ``` + + This can be used to enable facial recognition in Synology Photos for example. * ### What are the differences compared to the standard DSM?