From patchwork Sun Nov 10 15:00:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 3632 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 021403F332 for ; Sun, 10 Nov 2024 16:00:23 +0100 (CET) Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-4315dd8fe7fsf33622995e9.3 for ; Sun, 10 Nov 2024 07:00:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1731250823; cv=pass; d=google.com; s=arc-20240605; b=K2DtGgafc4pKO3EeJTSf6DtKZb0l6S+jDHcp59B0/FsJuXagzkEJ/dikbuFAYpDhC+ Bui1FvR2DoexF6eprLmcYXvluO0e4e2jQqDlQY98F3yUTZoZt1QbyssspAHTR9zkNrvH 33zCctNzySrwrUQRyQ5a1Xe3LX0BlZAmQWY0Y0e7tw36kDKSw+nhTfC1Yw0PSiIi4HOf jLUh+sS7iMT0blZsAGAkWHpQ85KvIXtvx67+272iBC/TupMKorgstjXhj+S9oyBG2Xwx 82uaqXShfUcJVQvPbpQXWnPG/WK2T/LWnOm/A0kbgnNJKqa4ezIl3qVdEwHZSIFlbH7L OhNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=LyHvLVwsDbqtsSzd2Vm1FkxONIRkNXY8L7/d5grZkoU=; fh=RVD58xr6LWuSe4qOmMvNMGD6+Fq3JgikX2zyrJfLdmo=; b=FkOrjm4jyougt3F6LnTlo/gmQCWh2B07rz1lyoFNveEVUVxRBvFhcY7uqfi5ivQMO5 PZn9jSqzN+sWrTkUqNww3RvX7KxDMI+4GGRRdvWMfBwCEEg8my+P+pxTE5mQDuCTSFxK 93J+a2M7t2ljQRCXABvAf+4jJtANroJjSpfw+xg+dohxjv9hZMRh3Wc3wnKZVjnhyR1/ 5NiZImHkFAZOIWsFXU/hDhZVvO/jGBQYYr75MOid+CRcsfuc8cnNJLfbV7jXb4g1lGGK UkWFWkNJc7uqT1xkdkT94InQ1wTxoL2fppDk8VnPtr90OUd17mMXal9ISOGIXjkRYaOm mq+A==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FSWXXxSm; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1731250823; x=1731855623; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=LyHvLVwsDbqtsSzd2Vm1FkxONIRkNXY8L7/d5grZkoU=; b=eTASFGxtGi++2/VUu8d9SFL0RGORJW5Ug5b1EXFyM48Q0wBqW4bXuL9CPZF5aI/+c0 8/HrgzcP2cDOTQdyrwaNhU39TrhKwZhMFrPH3v96k5lSFQdVTHB+2hDXcgAdWMeM/5Tj HXmQNxBAkkA/TxPQt2Y25w8kzx6NHPAf2tOXs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731250823; x=1731855623; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=LyHvLVwsDbqtsSzd2Vm1FkxONIRkNXY8L7/d5grZkoU=; b=kdmuWXUEu87VWQhblcoHdajhx/M98afbpqMPnO0ZTdNqde1vHR5J3YJMo9eK7eNXaC BKCFSJsGXHWfkhg3qL895UCXYUc4MOktUveBOLKmtdXQ610afh0noCW/D+60+1ka9Viy Mg0R/qDn0msRoXXEw/mttgss0MWv/UIN3CtBa1N3ovAv7RBmVDK/eEkWPadxNpSKqYIy m9FRc23Cj98B6s623GkVyRE3bxYz2ewyxm2lPa3uHXvd2ms3hzaSlDLnjwHHSavgF/g0 jg87uSc7lNx5LompcGdHmeSSdyzM8g02cRyHcPS0iVbAFay13Y26EGaGZDvqgRQKGLaQ mEpw== X-Forwarded-Encrypted: i=2; AJvYcCUJXmdy8vhBPBBkwdVGEu0CEX47f9Iz4H6Pf0UdnoGo5nYGA3KRIesCvnuVkyJc8IOg5ifZ2UFpOyTf3syN@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yy4fRorE7yGqOJU7x+39ut4qff46GXmDD9BKezkB9omxb+eDIx9 5k2ae19iLG+h1HzubudbECKy0b4XfYKsQrVA+dyXWC7/JxHOhulRlXNMprK2IC1zSQ== X-Google-Smtp-Source: AGHT+IEagdiTpvlv8YY5sZ3TQnn5m9Kody1Ya6/xrZ7xrHAf1K2Ptfwz8hD9EKqtb6f59CTPZoDJnw== X-Received: by 2002:a05:600c:4f10:b0:431:52a3:d9d5 with SMTP id 5b1f17b1804b1-432b74a07femr110804405e9.0.1731250823095; Sun, 10 Nov 2024 07:00:23 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:adf:e6d2:0:b0:368:31b2:9e96 with SMTP id ffacd0b85a97d-381ec3a0bd6ls1660726f8f.1.-pod-prod-05-eu; Sun, 10 Nov 2024 07:00:21 -0800 (PST) X-Received: by 2002:a05:6000:4106:b0:381:f5c2:9045 with SMTP id ffacd0b85a97d-381f5c2907dmr6512132f8f.51.1731250820901; Sun, 10 Nov 2024 07:00:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731250820; cv=none; d=google.com; s=arc-20240605; b=RXaBKZaShY2DYzFQip3ZywTXjuWjvTNTFRrvkVDaUi3IZQ/qiqT/Ear8ukz9AJcOAw tW0S4foN4WZXPoOIsqT2pZm1JZ0x+OTO7BSYDKri5lV2nBctmqhIHtdQQILGKbi0Adwi mM7oMHRwHFVZlnUnNFsQ1A6VLeuHQBh4DZJDiEnJu/pJ40FkrGdp29Wt8WPvLEC5t38s SQkxW7yCLqMF/wJ/PVd4hheS0HEDYaRPAc8OgD777Lkq5Gu3HuWtP53mgiaG5JC2SLYB G2PG2n1zYRUC3+g3jLw9KeVXuCcDuDTlHpXhDLvGkiEcbbCaF1wyas8nRBYiDbcaGj+R wJ2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=glDo7cCxjv8cuatflrWtsGGEb6oNsJWAFNxFzEySxhY=; fh=oGTMDtn/wsXBn0zaE5ZT8HLZ55JZ4MlqsQ+p2nzhzhQ=; b=KIDKIr9DJCGeoUZi1rR7AdhkBUjxoV3jL5gZdR3ul5gP7G3i+3PFXjCaxN86ea3uF8 Ned6oL6eD/ImSpQdcpzsesJr0ezG1IHudsS1iWMNaz+KjB8cypEfW2hrQSjaOSZ/bRgX qbXJJG5MALEGLFBYkvweBSKh9wk9yKscl92lQs0eL2OMmhW9mZZKhCqKOv5jcVOQxMKo XwUSEURAMnvN8ErTdEJrcadL56s32AXZKfq2WxiR7tfLE3GkVShfogfApww7twS8yshy MidE4xuJGf41B+29ihsO8Tx8Fyy6GkF51pnljz/cLax3PxIpCMSKuzueNy/1wBRz80n2 c1aw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FSWXXxSm; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a9ee0ddf1a7sor148709266b.18.2024.11.10.07.00.20 for (Google Transport Security); Sun, 10 Nov 2024 07:00:20 -0800 (PST) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6402:5192:b0:5cb:699c:30dd with SMTP id 4fb4d7f45d1cf-5cf0a446b13mr11237065a12.32.1731250820186; Sun, 10 Nov 2024 07:00:20 -0800 (PST) Received: from panicking.amarulasolutions.com (host-82-63-53-247.business.telecomitalia.it. [82.63.53.247]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9ee0e2f3cdsm491047266b.185.2024.11.10.07.00.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2024 07:00:19 -0800 (PST) From: Michael Trimarchi To: Openembedded-core@lists.openembedded.org Cc: linux-amarula@amarulasolutions.com, Michael Trimarchi Subject: [PATCH] connman: Fix restart script Date: Sun, 10 Nov 2024 16:00:15 +0100 Message-ID: <20241110150015.57179-1-michael@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FSWXXxSm; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The script does not work if the connman service is already stopped. The start-stop-daemon checks for the existence of a specified process. If such a process exists, start-stop-daemon sends it the signal specified by --signal, and exits with error status 0. If such a process does not exist, start-stop-daemon exits with error status 1 (0 if --oknodo is specified). The script uses set -e so we need to add --oknodo option to stop Signed-off-by: Michael Trimarchi --- meta/recipes-connectivity/connman/connman/connman | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-connectivity/connman/connman/connman b/meta/recipes-connectivity/connman/connman/connman index a021fd4655..adb5d44fed 100644 --- a/meta/recipes-connectivity/connman/connman/connman +++ b/meta/recipes-connectivity/connman/connman/connman @@ -18,7 +18,7 @@ do_start() { } do_stop() { - start-stop-daemon --stop --name connmand --quiet + start-stop-daemon --stop --oknodo --name connmand --quiet } case "$1" in