summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/spice-vdagent/files/rc.spice-vdagent2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/spice-vdagent/files/rc.spice-vdagent b/system/spice-vdagent/files/rc.spice-vdagent
index 9c3ff19cc8..16709ba5b7 100644
--- a/system/spice-vdagent/files/rc.spice-vdagent
+++ b/system/spice-vdagent/files/rc.spice-vdagent
@@ -31,7 +31,7 @@ start() {
stop() {
if [ "$(pidof $prog)" ]; then
/usr/bin/echo "Stopping $prog: "
- /bin/kill $pid
+ /bin/kill $(cat $pid)
else
/usr/bin/echo "$prog not running"
return 1