From 536fe1e2aa447bc8810479663f570f0a1b1a2b49 Mon Sep 17 00:00:00 2001 From: Stephan Geisler Date: Sun, 6 Feb 2022 20:46:52 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Evm=5Fcontrol.sh=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vm_control.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm_control.sh b/vm_control.sh index 21aa454..c667ad4 100644 --- a/vm_control.sh +++ b/vm_control.sh @@ -75,7 +75,7 @@ inotify_start() { on) if [ "$vm_host_status" = "shutdown" ]; then echo "starte $vm ..." - synowebapi --exec api=SYNO.Virtualization.API.Guest.Action version=1 method=poweron runner=admin guest_name="$vm" 2>/dev/null + synowebapi --exec api=SYNO.Virtualization.API.Guest.Action version=1 method=poweron runner=admin guest_name="$vm" > /dev/null 2>&1 else echo "VM $vm hat folgenden Status und kann nicht gestartet werden: $vm_host_status" fi @@ -83,7 +83,7 @@ inotify_start() { off) if [ "$vm_host_status" = "running" ]; then echo "beende $vm ..." - synowebapi --exec api=SYNO.Virtualization.API.Guest.Action version=1 method=shutdown runner=admin guest_name="$vm" 2>/dev/null + synowebapi --exec api=SYNO.Virtualization.API.Guest.Action version=1 method=shutdown runner=admin guest_name="$vm" > /dev/null 2>&1 else echo "VM $vm hat folgenden Status und kann nicht beendet werden: $vm_host_status" fi