提交 841a403f 编写于 作者: D Douglas Schilling Landgraf 提交者: Daniel Veillard

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.
上级 9e093f0b
......@@ -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....]
......
......@@ -76,6 +76,8 @@ stop() {
rm -f @localstatedir@/lock/subsys/$SERVICE
rm -f $PIDFILE
rm -rf @localstatedir@/cache/libvirt/*
else
exit $RETVAL
fi
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册