').val(name).attr('title', name).text(mtLogLabel(name)); }));
+ if (names.indexOf(picked) !== -1) $pick.val(picked);
+ $pick.css('display', names.length > 0 ? '' : 'none');
+ $('#moverLogLinks').css('display', names.length > 0 ? 'flex' : 'none');
+ $('#moverLogNone').css('display', names.length > 0 ? 'none' : '');
+ mtLogLinks();
+}
+$(function() {
+ function poll() {
+ if (document.hidden !== true) $.getJSON('/plugins/ca.mover.tuning/logList.php', {_: Date.now()}).done(mtShowLogs);
+ }
+ setInterval(poll, 10000);
+ document.addEventListener('visibilitychange', poll);
+});
// An emptied Log parent folder is posted as the /tmp default, never as an empty loggingFolder
function mtDefaultLogFolder(form) {
var $f = $(form).find('input[name="loggingFolder"]');
@@ -757,7 +783,7 @@ _(Logs parent folder for Mover Tuning plugin)_:
_(Log files)_:
-: =htmlspecialchars(moverLogLabel($moverLogFile))?> _(View)_ _(Download)_ _(No log files yet)_
+: _(No log files yet)_ _(View)_ _(Download)_
:mover_tune_logfiles_plug:
@@ -765,6 +791,10 @@ _(Log files)_:
:end
+
+
_(Delete Mover Log files over than this days old)_:
diff --git a/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/logFiles.php b/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/logFiles.php
index 7cd62ee3..dc72b3cf 100644
--- a/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/logFiles.php
+++ b/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/logFiles.php
@@ -23,12 +23,4 @@ function moverLogFiles(array $cfg): array {
function moverLogStamp(string $name): string {
return substr($name, strrpos($name, '_') + 1, 17);
}
-
-// Picker text, e.g. "2026-11-07 00:00:01 – Debug log"; needs the page's _()
-function moverLogLabel(string $name): string {
- $kinds = ['Mover_tuning' => _('Mover log'), 'Debug_Mover_tuning' => _('Debug log'), 'Summary' => _('Summary')];
- $stamp = moverLogStamp($name);
- $kind = substr($name, 0, strrpos($name, '_'));
- return substr($stamp, 0, 10) . ' ' . implode(':', str_split(substr($stamp, 11), 2)) . ' – ' . ($kinds[$kind] ?? $kind);
-}
?>
diff --git a/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/logList.php b/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/logList.php
new file mode 100644
index 00000000..61850e48
--- /dev/null
+++ b/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/logList.php
@@ -0,0 +1,7 @@
+
From 40de2366c6d0d6df78c3163f9f43d88248d259fb Mon Sep 17 00:00:00 2001
From: DaRK AnGeL <28630321+masterwishx@users.noreply.github.com>
Date: Sat, 7 Nov 2026 12:04:57 +0200
Subject: [PATCH 03/14] Revert "fix: update log file icons to white for better
visibility"
This reverts commit 6e9d3d5851ef51066747c6b6032346e8f9449291.
Signed-off-by: DaRK AnGeL <28630321+masterwishx@users.noreply.github.com>
---
.../usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page b/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page
index eea3c86d..c8c61687 100644
--- a/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page
+++ b/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page
@@ -757,7 +757,7 @@ _(Logs parent folder for Mover Tuning plugin)_:
_(Log files)_:
-: =htmlspecialchars(moverLogLabel($moverLogFile))?> _(View)_ _(Download)_ _(No log files yet)_
+: =htmlspecialchars(moverLogLabel($moverLogFile))?> _(View)_ _(Download)_ _(No log files yet)_
:mover_tune_logfiles_plug:
From 49fa309aedce14d8c944005635855be4dd0be99c Mon Sep 17 00:00:00 2001
From: chodeus <190988615+chodeus@users.noreply.github.com>
Date: Sat, 7 Nov 2026 18:14:30 +0800
Subject: [PATCH 04/14] Send one log list request at a time
A slow reply could land after a newer one and put back an older list, resetting the picked file. A poll now waits until the previous request has finished.
---
.../local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page b/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page
index a772c2b2..5eca5f43 100644
--- a/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page
+++ b/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page
@@ -148,8 +148,12 @@ function mtShowLogs(names) {
mtLogLinks();
}
$(function() {
+ // one request at a time, so an older reply can never land after a newer one
+ var asking = false;
function poll() {
- if (document.hidden !== true) $.getJSON('/plugins/ca.mover.tuning/logList.php', {_: Date.now()}).done(mtShowLogs);
+ if (document.hidden === true || asking === true) return;
+ asking = true;
+ $.getJSON('/plugins/ca.mover.tuning/logList.php', {_: Date.now()}).done(mtShowLogs).always(function() { asking = false; });
}
setInterval(poll, 10000);
document.addEventListener('visibilitychange', poll);
From d8dadc520609d9c4126781f470d44e0e2c09e483 Mon Sep 17 00:00:00 2001
From: chodeus <190988615+chodeus@users.noreply.github.com>
Date: Sat, 7 Nov 2026 18:15:51 +0800
Subject: [PATCH 05/14] Put the log icons outside their links, in the theme's
text colour
A white icon disappears on the white and azure themes. Outside the link each icon takes the theme's text colour; only the word is the link.
---
.../usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page b/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page
index 5eca5f43..da6569b4 100644
--- a/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page
+++ b/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page
@@ -787,7 +787,7 @@ _(Logs parent folder for Mover Tuning plugin)_:
_(Log files)_:
-: _(No log files yet)_ _(View)_ _(Download)_
+: _(No log files yet)_ _(View)_ _(Download)_
:mover_tune_logfiles_plug:
From eeaab1df8e761f3d824328251705687cf918023e Mon Sep 17 00:00:00 2001
From: chodeus <190988615+chodeus@users.noreply.github.com>
Date: Sat, 7 Nov 2026 19:07:28 +0800
Subject: [PATCH 06/14] Give the log list request a timeout
A request that never settled kept the next polls waiting, so the list stopped refreshing until a reload. After 9 seconds it now ends, and the next poll asks again.
---
.../local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page b/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page
index da6569b4..b82ffe64 100644
--- a/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page
+++ b/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page
@@ -148,12 +148,13 @@ function mtShowLogs(names) {
mtLogLinks();
}
$(function() {
- // one request at a time, so an older reply can never land after a newer one
+ // one request at a time, so an older reply can never land after a newer one; the timeout frees a stalled one
var asking = false;
function poll() {
if (document.hidden === true || asking === true) return;
asking = true;
- $.getJSON('/plugins/ca.mover.tuning/logList.php', {_: Date.now()}).done(mtShowLogs).always(function() { asking = false; });
+ $.ajax({url: '/plugins/ca.mover.tuning/logList.php', data: {_: Date.now()}, dataType: 'json', timeout: 9000})
+ .done(mtShowLogs).always(function() { asking = false; });
}
setInterval(poll, 10000);
document.addEventListener('visibilitychange', poll);
From 1814bd0a796a77abe0df3607dad2988128b3e68e Mon Sep 17 00:00:00 2001
From: masterwishx <28630321+masterwishx@users.noreply.github.com>
Date: Sat, 7 Nov 2026 12:11:28 +0000
Subject: [PATCH 07/14] chore(beta): release changelog
Release-Synced: fb81d32756d5fa76c989a7b4c623a62c8882a306
---
CHANGELOG.md | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c8ac72f8..8c9daf6c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,14 @@
# Changelog
+## Unreleased
+
+- Revert "fix: update log file icons to white for better visibility" (40de236)
+- fix: update log file icons to white for better visibility
+- Give the log list request a timeout (eeaab1d)
+- Put the log icons outside their links, in the theme's text colour (d8dadc5)
+- Send one log list request at a time (49fa309)
+- Refresh the Log files list while the tab is open (623d9e4)
+
## 2026.11.07a (beta)
- feat: Pause and Resume on Main and the Mover Tuning tab while files move. (chodeus)
From 9908f91408da59bd6383dd562284d4c9cf07b51b Mon Sep 17 00:00:00 2001
From: chodeus <190988615+chodeus@users.noreply.github.com>
Date: Sat, 7 Nov 2026 20:12:31 +0800
Subject: [PATCH 08/14] chore(beta): release notes
Release-Synced: fb81d32756d5fa76c989a7b4c623a62c8882a306
---
CHANGELOG.md | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8c9daf6c..ddbba828 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,12 +2,8 @@
## Unreleased
-- Revert "fix: update log file icons to white for better visibility" (40de236)
-- fix: update log file icons to white for better visibility
-- Give the log list request a timeout (eeaab1d)
-- Put the log icons outside their links, in the theme's text colour (d8dadc5)
-- Send one log list request at a time (49fa309)
-- Refresh the Log files list while the tab is open (623d9e4)
+- fix: The Log files list now shows new logs without a page reload. (chodeus)
+- fix: The Log files icons now follow the theme's text colour. (chodeus)
## 2026.11.07a (beta)
From d04a83c90421a0259b3fc63117c25f5e00b9b198 Mon Sep 17 00:00:00 2001
From: masterwishx <28630321+masterwishx@users.noreply.github.com>
Date: Sat, 7 Nov 2026 12:14:33 +0000
Subject: [PATCH 09/14] chore(release): 2026.11.07b [skip ci]
---
CHANGELOG.md | 2 +-
plugins/ca.mover.tuning.plg | 8 ++++++--
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ddbba828..6ba49743 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,6 @@
# Changelog
-## Unreleased
+## 2026.11.07b (beta)
- fix: The Log files list now shows new logs without a page reload. (chodeus)
- fix: The Log files icons now follow the theme's text colour. (chodeus)
diff --git a/plugins/ca.mover.tuning.plg b/plugins/ca.mover.tuning.plg
index 026418aa..d59d240e 100644
--- a/plugins/ca.mover.tuning.plg
+++ b/plugins/ca.mover.tuning.plg
@@ -2,8 +2,8 @@
-
-
+
+
@@ -14,6 +14,10 @@
+###2026.11.07b
+- fix: The Log files list now shows new logs without a page reload. (chodeus)
+- fix: The Log files icons now follow the theme's text colour. (chodeus)
+
###2026.11.07a
- feat: Pause and Resume on Main and the Mover Tuning tab while files move. (chodeus)
- feat: Rsync copies pause at once; the move tool pauses after the current file. (chodeus)
From 06fd68c525de140291d5545dd1a70e74cd578e56 Mon Sep 17 00:00:00 2001
From: chodeus <190988615+chodeus@users.noreply.github.com>
Date: Wed, 11 Nov 2026 09:14:03 +0800
Subject: [PATCH 10/14] Keep a running mover's pid file when the plugin is
installed or removed
The install and remove scripts read "age_mover is not running" as "no mover
is running" and deleted /var/run/mover.pid. Unraid's own mover and
share_mover write that file too, so a plugin update during one of their
runs hid the run: a second mover could start on top of it, and "mover
stop", which Unraid calls when the array stops, reported "not running".
mover.pid is now removed only when its pid is not a mover, and only while
the file still holds that pid. A run the plugin started (age_mover,
share_mover, or with_scripts from the before script on) keeps all its
files and blocks removal. Unraid's own mover keeps its pid file and does
not block removal.
---
plugins/ca.mover.tuning.plg | 67 +++++++++++++++++++++++++++----------
1 file changed, 49 insertions(+), 18 deletions(-)
diff --git a/plugins/ca.mover.tuning.plg b/plugins/ca.mover.tuning.plg
index d59d240e..43729148 100644
--- a/plugins/ca.mover.tuning.plg
+++ b/plugins/ca.mover.tuning.plg
@@ -879,17 +879,33 @@ else
chmod +x /usr/local/sbin/mover
fi
-# Clean leftover run-state files only if age_mover is NOT running
-if ! pgrep -f "age_mover" >/dev/null 2>&1; then
+# A run the plugin started: one of these is alive from its before script to its after script
+plugin_run_active() {
+ pgrep -f "age_mover|share_mover|ca\.mover\.tuning/with_scripts" >/dev/null 2>&1
+}
+
+# Removes mover.pid unless its pid is a mover: Unraid's own mover writes this file too
+remove_stale_mover_pid() {
+ local pid
+ pid=$(cat /var/run/mover.pid 2>/dev/null)
+ # a whole argument must name a mover: "mover" alone is also inside every ca.mover.tuning path
+ if grep -qszE '^(.*/)?(age_|share_)?mover(\.old)?$' "/proc/$pid/cmdline"; then
+ return 0
+ fi
+ # a mover that started after the read above has put its own pid in the file
+ if [[ "$(cat /var/run/mover.pid 2>/dev/null)" == "$pid" ]]; then
+ rm -f /var/run/mover.pid
+ fi
+}
+
+# Clean leftover run-state files unless a run of the plugin is in progress
+if ! plugin_run_active; then
echo "Cleaning leftover lock/stop files..."
- for file in mover.pid moversoft.stop mover.pause mover.moving; do
- if [[ -e "/var/run/$file" ]]; then
- rm -f "/var/run/$file"
- fi
- done
+ rm -f /var/run/moversoft.stop /var/run/mover.pause /var/run/mover.moving
+ remove_stale_mover_pid
else
# no exit here: the permissions, symlink and cron refresh below must run even during a mover run
- echo "age_mover is running - leaving its lock/stop files in place."
+ echo "A Mover Tuning run is in progress - leaving its lock/stop files in place."
fi
# Renaming mover.cron.disabled to mover.cron if exists (from old cron fix)
@@ -956,18 +972,33 @@ The 'remove' script.
-->
-# Clean leftover run-state files only if age_mover is NOT running
-if ! pgrep -f "age_mover" >/dev/null 2>&1; then
- echo "Cleaning leftover lock/stop files..."
- for file in mover.pid moversoft.stop mover.pause mover.moving; do
- if [[ -e "/var/run/$file" ]]; then
- rm -f "/var/run/$file"
- fi
- done
-else
- echo "WARNING: age_mover is still running - aborting plugin removal."
+# A run the plugin started: one of these is alive from its before script to its after script
+plugin_run_active() {
+ pgrep -f "age_mover|share_mover|ca\.mover\.tuning/with_scripts" >/dev/null 2>&1
+}
+
+# Removes mover.pid unless its pid is a mover: Unraid's own mover writes this file too
+remove_stale_mover_pid() {
+ local pid
+ pid=$(cat /var/run/mover.pid 2>/dev/null)
+ # a whole argument must name a mover: "mover" alone is also inside every ca.mover.tuning path
+ if grep -qszE '^(.*/)?(age_|share_)?mover(\.old)?$' "/proc/$pid/cmdline"; then
+ return 0
+ fi
+ # a mover that started after the read above has put its own pid in the file
+ if [[ "$(cat /var/run/mover.pid 2>/dev/null)" == "$pid" ]]; then
+ rm -f /var/run/mover.pid
+ fi
+}
+
+# A run of the plugin uses the files removed below; Unraid's own mover does not, so it never blocks removal
+if plugin_run_active; then
+ echo "WARNING: a Mover Tuning run is in progress - aborting plugin removal."
exit 1
fi
+echo "Cleaning leftover lock/stop files..."
+rm -f /var/run/moversoft.stop /var/run/mover.pause /var/run/mover.moving
+remove_stale_mover_pid
# Restore the mover this plugin backed up below Unraid 7.2.1 only; 7.4 ships its own mover.old
UNRAID_VERSION=$(grep '^version=' /etc/unraid-version | cut -d'"' -f2)
From efdbaf1df2cd7de4e4986dce9f754cbd29bf51a9 Mon Sep 17 00:00:00 2001
From: masterwishx <28630321+masterwishx@users.noreply.github.com>
Date: Wed, 11 Nov 2026 01:40:34 +0000
Subject: [PATCH 11/14] chore(beta): release changelog
Release-Synced: 76bfab19214382a12b1013ef1694b737a4cd5598
---
CHANGELOG.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6ba49743..035b6c07 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog
+## Unreleased
+
+- Keep a running mover's pid file when the plugin is installed or removed (06fd68c)
+
## 2026.11.07b (beta)
- fix: The Log files list now shows new logs without a page reload. (chodeus)
From c78679a1dd9df84b6a39854edca3287f8d59b6f7 Mon Sep 17 00:00:00 2001
From: chodeus <190988615+chodeus@users.noreply.github.com>
Date: Wed, 11 Nov 2026 10:04:20 +0800
Subject: [PATCH 12/14] chore(beta): release notes
Release-Synced: 76bfab19214382a12b1013ef1694b737a4cd5598
---
CHANGELOG.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 035b6c07..def1f1f5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,7 +2,7 @@
## Unreleased
-- Keep a running mover's pid file when the plugin is installed or removed (06fd68c)
+- fix: Updating the plugin during a move no longer hides the running mover. (chodeus)
## 2026.11.07b (beta)
From 15033248aed99feb6203f5f09596fcdb0cb2228e Mon Sep 17 00:00:00 2001
From: masterwishx <28630321+masterwishx@users.noreply.github.com>
Date: Wed, 11 Nov 2026 02:11:36 +0000
Subject: [PATCH 13/14] chore(release): 2026.11.11a [skip ci]
---
CHANGELOG.md | 2 +-
plugins/ca.mover.tuning.plg | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index def1f1f5..9e34c334 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,6 @@
# Changelog
-## Unreleased
+## 2026.11.11a (beta)
- fix: Updating the plugin during a move no longer hides the running mover. (chodeus)
diff --git a/plugins/ca.mover.tuning.plg b/plugins/ca.mover.tuning.plg
index 43729148..0ceb30bd 100644
--- a/plugins/ca.mover.tuning.plg
+++ b/plugins/ca.mover.tuning.plg
@@ -2,8 +2,8 @@
-
-
+
+
@@ -14,6 +14,9 @@
+###2026.11.11a
+- fix: Updating the plugin during a move no longer hides the running mover. (chodeus)
+
###2026.11.07b
- fix: The Log files list now shows new logs without a page reload. (chodeus)
- fix: The Log files icons now follow the theme's text colour. (chodeus)
From b95d851f29821f1471bad685fbcc8b9b377f4ed7 Mon Sep 17 00:00:00 2001
From: masterwishx <28630321+masterwishx@users.noreply.github.com>
Date: Wed, 11 Nov 2026 02:11:45 +0000
Subject: [PATCH 14/14] chore(master): release changelog
Release-Synced: 526ac52b3f151b044f1ac7b0804670999a5c32b0
Release-Synced-Beta: 2026.11.11a
---
CHANGELOG.md | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a9fab213..c5e7c20c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog
+## Unreleased
+
+- fix: The Log files list now shows new logs without a page reload. (chodeus)
+- fix: The Log files icons now follow the theme's text colour. (chodeus)
+- fix: Updating the plugin during a move no longer hides the running mover. (chodeus)
+
## 2026.11.11a (beta)
- fix: Updating the plugin during a move no longer hides the running mover. (chodeus)