„vm_control.sh“ ändern
This commit is contained in:
parent
bb6b99530b
commit
536fe1e2aa
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ inotify_start() {
|
||||||
on)
|
on)
|
||||||
if [ "$vm_host_status" = "shutdown" ]; then
|
if [ "$vm_host_status" = "shutdown" ]; then
|
||||||
echo "starte $vm ..."
|
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
|
else
|
||||||
echo "VM $vm hat folgenden Status und kann nicht gestartet werden: $vm_host_status"
|
echo "VM $vm hat folgenden Status und kann nicht gestartet werden: $vm_host_status"
|
||||||
fi
|
fi
|
||||||
|
@ -83,7 +83,7 @@ inotify_start() {
|
||||||
off)
|
off)
|
||||||
if [ "$vm_host_status" = "running" ]; then
|
if [ "$vm_host_status" = "running" ]; then
|
||||||
echo "beende $vm ..."
|
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
|
else
|
||||||
echo "VM $vm hat folgenden Status und kann nicht beendet werden: $vm_host_status"
|
echo "VM $vm hat folgenden Status und kann nicht beendet werden: $vm_host_status"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue