From: Stefan Schantl Date: Wed, 27 Mar 2024 19:39:20 +0000 (+0100) Subject: grub-btrfsd: Drop redundant used PIDFILE mechanism X-Git-Tag: v2.29-core186~121 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b25236acf75f47999bc01885c35a0fc80a782023;p=ipfire-2.x.git grub-btrfsd: Drop redundant used PIDFILE mechanism This case is already covered by the PID mechanism of the used functions Signed-off-by: Stefan Schantl Reviewed-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- diff --git a/src/initscripts/system/grub-btrfsd b/src/initscripts/system/grub-btrfsd index 26760f9be8..49073a807f 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)