From patchwork Mon Jul 7 10:07:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 4494211 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DBE9D9F36A for ; Mon, 7 Jul 2014 10:07:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F14292024D for ; Mon, 7 Jul 2014 10:07:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CEC812024C for ; Mon, 7 Jul 2014 10:07:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751769AbaGGKHI (ORCPT ); Mon, 7 Jul 2014 06:07:08 -0400 Received: from mail-we0-f170.google.com ([74.125.82.170]:35955 "EHLO mail-we0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751392AbaGGKHH (ORCPT ); Mon, 7 Jul 2014 06:07:07 -0400 Received: by mail-we0-f170.google.com with SMTP id w61so4138565wes.1 for ; Mon, 07 Jul 2014 03:07:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type:content-transfer-encoding; bh=YGgnw3l9hix+fTCJA+W9tTi+KvwPk25RP/x52PtOCvc=; b=Nzuyr/uEer3i3d/P+OtDBhJCwkk2hGnLULKquS0Hn1VsLa8K1pQXDJGn9v2YhrROI1 8snwfHY7N6wi212l/YCE3ex55Dhi+AyTWMlWeKA+DKhf9CXJTf4GsSlP5+b3qqhZ6ato SJHgYBRVEk9J8iw7LxrqzpdhTbn8GVtIiD3W0HkEN3065vYeeWBPiDy6PhMv6yb3aqg5 j2yMqxSSKcK+Gr/GOQUvgZSEEBH7OcBBW6WbW0E3j+DGdEmUctoTdn7kUHZ4eCEfzz3L NWsmhpC63E5E1SMx3hyf0+fMpOxdw8H1DXLO3YwAe+deUbF9iHzYcKSanQXLvCbI6cex hmow== X-Gm-Message-State: ALoCoQm/XxhCBjONOB7nJXntRb8dRkbc8bOcqZxi6NaUm4UV16Lc5ZI+cTH4V7UPgeRmoxNCOEcA X-Received: by 10.180.101.39 with SMTP id fd7mr35456447wib.65.1404727626191; Mon, 07 Jul 2014 03:07:06 -0700 (PDT) Received: from [192.168.1.102] (c-98-229-118-119.hsd1.ma.comcast.net. [98.229.118.119]) by mx.google.com with ESMTPSA id o12sm113436506wiw.5.2014.07.07.03.07.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Jul 2014 03:07:05 -0700 (PDT) Message-ID: <53BA7147.8030605@dev.mellanox.co.il> Date: Mon, 07 Jul 2014 06:07:03 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "linux-rdma (linux-rdma@vger.kernel.org)" CC: Daniel Klein Subject: [PATCH opensm] opensm.init.in: Fix return value checking in opensm.init script Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Daniel Klein Fix return value checks when calling stop and start functions Signed-off-by: Daniel Klein --- scripts/opensm.init.in | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/scripts/opensm.init.in b/scripts/opensm.init.in index d2d1a71..700a32b 100644 --- a/scripts/opensm.init.in +++ b/scripts/opensm.init.in @@ -80,6 +80,7 @@ start () { fi echo -n "Starting opensm: " @sbindir@/opensm --daemon --pidfile $pidfile $OPTIONS > /dev/null + RETVAL=$? if [[ $RETVAL -eq 0 ]]; then success else @@ -91,6 +92,7 @@ start () { stop () { echo -n "Shutting down opensm: " killproc opensm + RETVAL=$? if [[ $RETVAL -eq 0 ]]; then success else