From 1db0942926e0c6fea2cdf44bfe51184841879f3f Mon Sep 17 00:00:00 2001 From: Andrzej Telszewski Date: Tue, 9 Jan 2018 13:08:03 +0100 Subject: system/spice-vdagent: Fix pid killing when stopping the service. Signed-off-by: Matteo Bernardini --- system/spice-vdagent/files/rc.spice-vdagent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/spice-vdagent/files/rc.spice-vdagent b/system/spice-vdagent/files/rc.spice-vdagent index 9c3ff19cc8da..16709ba5b7fc 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 -- cgit v1.2.3