6c7d603
From a167b3f8945d07137c98d4ee6c2d512d5bc0cdbd Mon Sep 17 00:00:00 2001
6c7d603
From: Hans de Goede <hdegoede@redhat.com>
6c7d603
Date: Mon, 10 Jan 2011 19:31:35 +0100
6c7d603
Subject: [PATCH] sysv initscript: exit cleanly when not running under spice
6c7d603
6c7d603
Exit with an exit code of 0 (iow everything ok), rather then 6 (lsb:
6c7d603
program not configured) when started while not running under a spice
6c7d603
enabled vm.
6c7d603
---
6c7d603
 spice-vdagentd.sh |    2 +-
6c7d603
 1 files changed, 1 insertions(+), 1 deletions(-)
6c7d603
6c7d603
diff --git a/spice-vdagentd.sh b/spice-vdagentd.sh
6c7d603
index 1ff2015..f901398 100644
6c7d603
--- a/spice-vdagentd.sh
6c7d603
+++ b/spice-vdagentd.sh
6c7d603
@@ -35,7 +35,7 @@ lockfile=/var/lock/subsys/$prog
6c7d603
 
6c7d603
 start() {
6c7d603
     [ -x $exec ] || exit 5
6c7d603
-    [ -c $port ] || exit 6
6c7d603
+    [ -c $port ] || exit 0
6c7d603
     # In case the previous running vdagentd crashed
6c7d603
     rm -f /var/run/spice-vdagentd/spice-vdagent-sock
6c7d603
     echo -n $"Starting $prog: "
6c7d603
-- 
6c7d603
1.7.3.2
6c7d603