]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
grub-btrfsd: Drop redundant used PIDFILE mechanism
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 27 Mar 2024 19:39:20 +0000 (20:39 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 2 Apr 2024 19:25:47 +0000 (19:25 +0000)
This case is already covered by the PID mechanism of the used functions

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/initscripts/system/grub-btrfsd

index 26760f9be844be69272d166c78c8f1288a7b8ee3..49073a807f60d35897f65dff0de3f3afaf0c42c6 100644 (file)
@@ -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)