summaryrefslogtreecommitdiff
path: root/system/spice-vdagent
diff options
context:
space:
mode:
authorAndrzej Telszewski <atelszewski@gmail.com>2018-01-09 13:08:03 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-01-10 23:56:02 +0700
commit1db0942926e0c6fea2cdf44bfe51184841879f3f (patch)
treef797fa0d92dc950241060573cd72c1e733aaf4bb /system/spice-vdagent
parentb5e8c43e4f06916ba46bb68d13972496d646662d (diff)
downloadslackbuilds-1db0942926e0c6fea2cdf44bfe51184841879f3f.tar.gz
system/spice-vdagent: Fix pid killing when stopping the service.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/spice-vdagent')
-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