From patchwork Wed Mar 27 19:39:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 7688 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4V4cSW6t1Mz3wv4 for ; Wed, 27 Mar 2024 19:39:39 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4V4cSS57Zxz5VV; Wed, 27 Mar 2024 19:39:36 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4V4cSS4LKcz30V2; Wed, 27 Mar 2024 19:39:36 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4V4cSP2zbcz30BS for ; Wed, 27 Mar 2024 19:39:33 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4V4cSN4wCXz15g; Wed, 27 Mar 2024 19:39:32 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1711568372; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kusAY9nYI+uwSvanxjylYEC5FsVEPOGqMUkv8s93kbU=; b=EWTG33OA/NEIiMwA2TyieMSozw7PX1XoZB3VUWr26j5YGXhJ6cJjsMWpI5+soiLLJSTNwC tEhH0UEDj6hQtzCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1711568372; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kusAY9nYI+uwSvanxjylYEC5FsVEPOGqMUkv8s93kbU=; b=U/19ot1kC99Q0iwDbrTi9R+XjoNtYiqpXFxdPxT+UcZpO/Gy0PmCLBGtYYj0/iS5uwciVP yJTZQJbCnKhTmsUUx2m31Yo03yZQc8JjQiu8I1ZacTQ6DLhVNRXvc6wPx2C0T3lrEraBBN BC5AmSUG/22FM3smLkWMNnMbnlCKBduAqVIcbXuMQW/lq1ua3sOnfX0sfuc4zzUOxDvGz1 S3QK0DHAJw7EcoTdNwV622Na4bo/ORBUfh3dj0XmTrK+xb6+Ti/DezSWUo5j9xzUXgXl/T LfUkte8zHkl4r8dyLLBAy11x5OW+JSNDg31Kq2UY7SiGaFzCO9Uhv7eKqg/tBQ== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCHv2 4/4] grub-btrfsd: Drop redundant used PIDFILE mechanism Date: Wed, 27 Mar 2024 20:39:20 +0100 Message-Id: <20240327193920.14311-4-stefan.schantl@ipfire.org> In-Reply-To: <20240327193920.14311-1-stefan.schantl@ipfire.org> References: <20240327193920.14311-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Message-ID-Hash: 4DGHEBJFYY4A5LJS7UUV55HCJEWZHXF7 X-Message-ID-Hash: 4DGHEBJFYY4A5LJS7UUV55HCJEWZHXF7 X-MailFrom: stefan.schantl@ipfire.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: IPFire development talk Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: This case is already covered by the PID mechanism of the used functions Signed-off-by: Stefan Schantl Reviewed-by: Michael Tremer --- src/initscripts/system/grub-btrfsd | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/initscripts/system/grub-btrfsd b/src/initscripts/system/grub-btrfsd index 26760f9be..49073a807 100644 --- a/src/initscripts/system/grub-btrfsd +++ b/src/initscripts/system/grub-btrfsd @@ -33,16 +33,14 @@ case "$1" in btrfs) boot_mesg "Starting GRUB/Btrfs Daemon..." - loadproc -b -p "$PIDFILE" /usr/bin/grub-btrfsd --syslog "$SNAPSHOTDIR" - echo "$!" > "$PIDFILE" + loadproc -b /usr/bin/grub-btrfsd --syslog "$SNAPSHOTDIR" ;; esac ;; stop) boot_mesg "Stopping grub-btrfsd..." - killproc -p "$PIDFILE" /usr/bin/grub-btrfsd - sleep 1; + killproc /usr/bin/grub-btrfsd ;; restart)