From mboxrd@z Thu Jan 1 00:00:00 1970 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> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8227959745221718083==" List-Id: --===============8227959745221718083== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This case is already covered by the PID mechanism of the used functions Signed-off-by: Stefan Schantl --- 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) =20 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 ;; =20 stop) boot_mesg "Stopping grub-btrfsd..." - killproc -p "$PIDFILE" /usr/bin/grub-btrfsd - sleep 1; + killproc /usr/bin/grub-btrfsd ;; =20 restart) --=20 2.39.2 --===============8227959745221718083==--