]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
grub-btrfsd: Drop redundant used PIDFILE mechanism next-BTRFSv2
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 27 Mar 2024 05:13:56 +0000 (06:13 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 27 Mar 2024 05:13:56 +0000 (06:13 +0100)
This case is already covered by the PID mechanism of the used functions

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
src/initscripts/system/grub-btrfsd

index 26760f9be844be69272d166c78c8f1288a7b8ee3..5981c3a0a0dd1c51415b9109e864f0558cb28e24 100644 (file)
@@ -33,15 +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
+               killproc -p /usr/bin/grub-btrfsd
                sleep 1;
        ;;