1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00

libvirtd.init.in: stop/restart() - wrong return value in case of failure

The function stop() was always returning 0 (OK) from killproc() even
in case of error.
This commit is contained in:
Douglas Schilling Landgraf 2011-08-15 15:44:39 +08:00 committed by Daniel Veillard
parent 9e093f0b4c
commit 841a403f94
2 changed files with 3 additions and 0 deletions

View File

@ -188,6 +188,7 @@ Patches have also been contributed by:
Peter Krempa <pkrempa@redhat.com>
Nan Zhang <nzhang@redhat.com>
Wieland Hoffmann <themineo@googlemail.com>
Douglas Schilling Landgraf <dougsland@redhat.com>
[....send patches to get your name here....]

View File

@ -76,6 +76,8 @@ stop() {
rm -f @localstatedir@/lock/subsys/$SERVICE
rm -f $PIDFILE
rm -rf @localstatedir@/cache/libvirt/*
else
exit $RETVAL
fi
}