xfs_repair not running in the background.

This commit is contained in:
dlandon
2024-06-13 07:12:53 -05:00
parent dd9474ef55
commit f6ae173275

View File

@@ -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