summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2008-07-21 13:25:23 -0400
committerBrenton Leanhardt <bleanhar@redhat.com>2008-07-21 13:37:16 -0400
commit92f9f15e920dc2cab40666674a8099fe74a8a56a (patch)
tree8378e536ba2113a9bff49f1c7d9f47ed39056fbf
parent96bf61e44f8ebf9fd384a90820c911e47627d2e7 (diff)
downloadtools-92f9f15e920dc2cab40666674a8099fe74a8a56a.tar.gz
tools-92f9f15e920dc2cab40666674a8099fe74a8a56a.tar.xz
tools-92f9f15e920dc2cab40666674a8099fe74a8a56a.zip
Fixing annoying cron problem with the autostarter
Until the first machine is created the autostart directory doesn't exist. Now we send the error to /dev/null. https://fedorahosted.org/genome/ticket/1
-rw-r--r--genome-autostarter/genome-autostarter.sh2
-rw-r--r--genome-autostarter/genome-autostarter.spec2
2 files changed, 2 insertions, 2 deletions
diff --git a/genome-autostarter/genome-autostarter.sh b/genome-autostarter/genome-autostarter.sh
index 1555d05..d1aba90 100644
--- a/genome-autostarter/genome-autostarter.sh
+++ b/genome-autostarter/genome-autostarter.sh
@@ -5,7 +5,7 @@ if [ $? == 0 ]; then
find /etc/xen/auto -name "*" -type l | xargs -n1 basename 2> /dev/null | xargs -n1 virsh start &> /dev/null
else
# We're using kvm
- for vm_xml in `find /etc/libvirt/qemu/autostart -name "*" -type l`; do
+ for vm_xml in `find /etc/libvirt/qemu/autostart -name "*" -type l 2> /dev/null`; do
vm=`basename $vm_xml .xml` # Chop of the extension
virsh start $vm &> /dev/null
done
diff --git a/genome-autostarter/genome-autostarter.spec b/genome-autostarter/genome-autostarter.spec
index 82c4cfc..2572945 100644
--- a/genome-autostarter/genome-autostarter.spec
+++ b/genome-autostarter/genome-autostarter.spec
@@ -3,7 +3,7 @@ Name: genome-autostarter
Source0: genome-autostarter
Source1: genome-autostarter.sh
Version: 1.0.0
-Release: 6%{?dist}
+Release: 7%{?dist}
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Group: Applications/System