From patchwork Mon Apr 20 09:57:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1273240 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=CdZrXmDB; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 495MZm6z9wz9sR4 for ; Mon, 20 Apr 2020 19:58:06 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 50C3A86A0C; Mon, 20 Apr 2020 09:58:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0bxsyrj852qz; Mon, 20 Apr 2020 09:57:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id C03D086A3C; Mon, 20 Apr 2020 09:57:58 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B34BD1BF470 for ; Mon, 20 Apr 2020 09:57:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id AF9B386A3C for ; Mon, 20 Apr 2020 09:57:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YWQ0qwSpmzJ6 for ; Mon, 20 Apr 2020 09:57:57 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id E3BF986A0C for ; Mon, 20 Apr 2020 09:57:56 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id x25so10288295wmc.0 for ; Mon, 20 Apr 2020 02:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=N7vIf5mpDn8dzCF7abrCKsQ5GEUTQxCe28/nGPLwO58=; b=CdZrXmDBmq6eZqirUILwsG9AY10I6MsZqM5OO61OiaR22PUn1pP+QiIbwaGQGpcq+j qWtnSe9RdhkkK+qySLRT2oQXiInLnGKPZAoQ6d4ENHzZEAoeIhdribjrLqGWvRFldZVe FtNRFkZZziybwn/Y07w+lZG88yt/4DC+KGJXSdAJa9TDqB4CZwiA7rM7B/cKbKdUB+GL e3o/RUOKlpNRTIUkBPFbcBf3L8qsqVwMiB9ebfiRGdsEgiJztWgzp7UKF+yRH5VTanrE STtxf/Uz0tlksMlZOh60QxuZPfwdIwGkhcJ2Ep8RsdAdLKr4Fe3bG1gLYh5XJtUtH6jJ seGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=N7vIf5mpDn8dzCF7abrCKsQ5GEUTQxCe28/nGPLwO58=; b=AcqFxXSTnYDfJK584dp6rhEiDJZtbqTJbCQUDc3tck17mOPMFsw4hFBbYwVjZyv5q0 o50dNoSgfmXU3BqudkZs60uYPHXEMMXbceqO0R5bJ5EBBp/G8wi5DZTJ6q0iuq6yky1U 4SKAp+Jo88pXSYoIFfISzQ52tmYw07P9SlihEhuCrunAgjT1G05u4oE8XgrmeMk+cjYb O4VOlfhZe2gpz0zWPMNBHT99tyUAsBROZqmeFB5ZocQ8dP+1Z2PsmhQtF+jli1GCcoNM 9A4n6d5+DnaYIwUTtyt8KP5rHN/GjSzza/sboQ5eqUm/6PhgKh+8qKgik2xDwZDtne57 a7ig== X-Gm-Message-State: AGi0PuYIYzpXX4hROCfhMverunoNVPYgfSNWrNKK8ig/L4RcWJxxVoUp eq3PdI9aNaZKlB525oqEREs76Wv4 X-Google-Smtp-Source: APiQypIyU0+82X4S3Xr76l6l16HYXAU7yFr6NXZjvKD41kscFYRkjMWLeSGODX5czXSmJlLwVbs0EQ== X-Received: by 2002:a7b:c459:: with SMTP id l25mr16457827wmi.52.1587376674960; Mon, 20 Apr 2020 02:57:54 -0700 (PDT) Received: from t450s.fritz.box (ip5b426f84.dynamic.kabel-deutschland.de. [91.66.111.132]) by smtp.gmail.com with ESMTPSA id k8sm485322wrm.52.2020.04.20.02.57.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 02:57:54 -0700 (PDT) From: Heiko Thiery To: buildroot@buildroot.org Date: Mon, 20 Apr 2020 11:57:38 +0200 Message-Id: <20200420095738.16104-1-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/syrepo: fix SysV init script X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Thiery , =?utf-8?q?Jan_Kundr=C3=A1t?= Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The sysrepo-plugind does not support to be controlled via the PID by the start-stop-daemon. This is because sysrepo-plugind does a fork. Thus the daemon is running with another PID known by start-stop-daemon. Now use the '-x' option of start-stop-daemon to stop. Signed-off-by: Heiko Thiery --- package/sysrepo/S51sysrepo-plugind | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/sysrepo/S51sysrepo-plugind b/package/sysrepo/S51sysrepo-plugind index 74b68396bf..9e15da59f9 100644 --- a/package/sysrepo/S51sysrepo-plugind +++ b/package/sysrepo/S51sysrepo-plugind @@ -1,7 +1,6 @@ #!/bin/sh DAEMON="sysrepo-plugind" -PIDFILE="/var/run/$DAEMON.pid" SYSREPO_PLUGIND_ARGS="" @@ -23,7 +22,7 @@ start() { stop() { printf 'Stopping %s: ' "$DAEMON" - start-stop-daemon -K -q -p $PIDFILE + start-stop-daemon -K -q -x "/usr/bin/$DAEMON" status=$? if [ "$status" -eq 0 ]; then echo "OK"