From: Adam Osuchowski Date: Wed, 17 Feb 2016 17:52:22 +0000 (+0100) Subject: - add waiting options for killproc in init script X-Git-Tag: auto/th/multipath-tools-0.5.0-3 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=5437b2203ccfca2aab982c9117c7ea9d84e2eef5;p=packages%2Fmultipath-tools.git - add waiting options for killproc in init script --- diff --git a/multipath-tools.spec b/multipath-tools.spec index 1108a2f..7b97e28 100644 --- a/multipath-tools.spec +++ b/multipath-tools.spec @@ -6,7 +6,7 @@ Summary: Tools to manage multipathed devices with the device-mapper Summary(pl.UTF-8): Implementacja wielotrasowego dostępu do zasobów przy użyciu device-mappera Name: multipath-tools Version: 0.5.0 -Release: 2 +Release: 3 License: GPL v2 Group: Base Source0: http://christophe.varoqui.free.fr/multipath-tools/%{name}-%{version}.tar.bz2 diff --git a/multipathd.init b/multipathd.init index ec51442..9a12ccf 100755 --- a/multipathd.init +++ b/multipathd.init @@ -36,7 +36,7 @@ stop() { # Stop daemons. msg_stopping "multipath daemon" - killproc --pidfile multipathd.pid multipathd -TERM + killproc --pidfile multipathd.pid --waitforname multipathd --waitfortime 300 multipathd -TERM rm -f /var/lock/subsys/multipathd }