diff options
author | Andrzej Telszewski <atelszewski@gmail.com> | 2018-01-09 13:08:03 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-01-10 23:56:02 +0700 |
commit | 1db0942926e0c6fea2cdf44bfe51184841879f3f (patch) | |
tree | f797fa0d92dc950241060573cd72c1e733aaf4bb /system/spice-vdagent | |
parent | b5e8c43e4f06916ba46bb68d13972496d646662d (diff) |
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-vdagent | 2 |
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 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 |