From f6ae1732754cced2ffd7a6b09b11c1b63dcf61cb Mon Sep 17 00:00:00 2001 From: dlandon Date: Thu, 13 Jun 2024 07:12:53 -0500 Subject: [PATCH] xfs_repair not running in the background. --- emhttp/plugins/dynamix/scripts/xfs_check | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/emhttp/plugins/dynamix/scripts/xfs_check b/emhttp/plugins/dynamix/scripts/xfs_check index 86d5ad8cb..1173f4b46 100755 --- a/emhttp/plugins/dynamix/scripts/xfs_check +++ b/emhttp/plugins/dynamix/scripts/xfs_check @@ -18,11 +18,7 @@ mkdir -p /var/lib/xfs case "$1" in 'start') # Start the xfs_repair process in the background and log output - nohup bash -c "( - /sbin/xfs_repair $4 $2 &> /var/lib/xfs/check.status.$3 - echo \$? > /var/lib/xfs/check.status.$3.exit - rm -f /var/lib/xfs/check.pid.$3 - ) &" & + /sbin/xfs_repair $4 $2 &> /var/lib/xfs/check.status.$3 & pid=$! echo $pid > /var/lib/xfs/check.pid.$3 exit 0