mirror of
https://github.com/unraid/webgui.git
synced 2026-05-02 15:59:35 -05:00
Update parity_control to latest commands for pause and resume
This commit is contained in:
@@ -25,13 +25,13 @@ if (mdstat('mdResyncPos')>0 && substr(mdstat('mdResyncAction'),0,7)=='check P')
|
||||
if (mdstat('mdResync')>0) {
|
||||
if (!file_exists($stamps)) file_put_contents($stamps,mdstat('sbSynced'));
|
||||
file_put_contents($stamps,','.time(),FILE_APPEND);
|
||||
exec("$mdcmd nocheck pause");
|
||||
exec("$mdcmd cmdCheckPause");
|
||||
}
|
||||
break;
|
||||
case 'resume':
|
||||
if (mdstat('mdResync')==0) {
|
||||
file_put_contents($stamps,','.time(),FILE_APPEND);
|
||||
exec("$mdcmd check resume");
|
||||
exec("$mdcmd cmdCheckResume");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user