From cd1b4031dffad51fa2b83f68dd287a67d05e633d Mon Sep 17 00:00:00 2001 From: dlandon Date: Sun, 30 Jun 2024 09:26:26 -0500 Subject: [PATCH] Xfs not properly showing issues from exit code. --- emhttp/plugins/dynamix/scripts/xfs_check | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emhttp/plugins/dynamix/scripts/xfs_check b/emhttp/plugins/dynamix/scripts/xfs_check index 1173f4b46..3eafebece 100755 --- a/emhttp/plugins/dynamix/scripts/xfs_check +++ b/emhttp/plugins/dynamix/scripts/xfs_check @@ -21,6 +21,11 @@ case "$1" in /sbin/xfs_repair $4 $2 &> /var/lib/xfs/check.status.$3 & pid=$! echo $pid > /var/lib/xfs/check.pid.$3 + # Capture the exit code once xfs_repair completes + { + wait $pid + echo $? > /var/lib/xfs/check.status.$3.exit + } & exit 0 ;; 'status')