I have included a safety check/escape in that you will get a notification that a shutdown is pending near the start of the check, but as long as you unset the option before the array operation finishes then the shutdown is aborted. It was not a lot of code as most of the building block needed were already included, just not being used to trigger the shutdown at the appropriate point. I already have the code implemented and am currently testing that it works as expected. My Bash is not the cleanest but it did do the job technically however I had issues with executing the whole thing reliably from the main server to start it, execute the parity check and then shut down again. #run script when parity check has completed #continue to recheck if parity is runningĮcho "Waiting $check_interval seconds to check again" If & Įcho "Parity Check / Sync / Rebuild not running."Įlif & Įcho "Parity Check / Sync / Rebuild in progress." Test=$(grep -wn "mdResyncPos" <<< "$VARS") Maybe you find some of the code useful in implementing the logic: I was working on a solution to essentially implement a similar function using user scripts. The next update will allow this option to be selected. If you read the change log you will see that it mentions this option is added to the GUI, but is currently disabled due the supporting code not being ready.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |