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