Fix readynasd from restarting every time the volume runs.
This commit is contained in:
parent
4838c5725e
commit
48870c461d
1 changed files with 10 additions and 10 deletions
|
@ -156,15 +156,15 @@ else
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
echo "= done with /$volume"
|
echo "= done with /$volume"
|
||||||
if [[ $found -gt 0 ]] && [[ $readynasd ]] ; then
|
|
||||||
echo "*** Restarting readynasd to finish changes... ***"
|
|
||||||
systemctl restart readynasd
|
|
||||||
else
|
|
||||||
echo "Not starting readynasd because it returned a bad message earlier; restart manually."
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
echo "================================================="
|
if [[ $found -gt 0 ]] && [[ $readynasd ]] ; then
|
||||||
echo "| Completed share creation! We were able to |"
|
echo "*** Restarting readynasd to finish changes... ***"
|
||||||
echo "| rebuild $shares shares and $iscsi LUNs. |"
|
systemctl restart readynasd
|
||||||
echo "================================================="
|
else
|
||||||
|
echo "Not starting readynasd because it returned a bad message earlier; restart manually."
|
||||||
|
fi
|
||||||
|
echo "================================================="
|
||||||
|
echo "| Completed share creation! We were able to |"
|
||||||
|
echo "| rebuild $shares shares and $iscsi LUNs. |"
|
||||||
|
echo "================================================="
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue