Skip to content

Commit

Permalink
[merge] from unstable into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
OneCDOnly committed Aug 7, 2024
2 parents ae3ed37 + a745a24 commit b781a5a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
Binary file modified objects.tar.gz
Binary file not shown.
Binary file modified sherpa-manager.tar.gz
Binary file not shown.
12 changes: 8 additions & 4 deletions support/sherpa-manager.source
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ DebugLogEnv()
DebugInfoMinSepr
RunAndLog '/usr/bin/free' "$RAM_FREEUSED_PATHFILE" '' 1
DebugInfoMinSepr
RunAndLog "$CAT_CMD /mnt/HDA_ROOT/.logs/kmsg | $GREP_CMD -i 'out of memory\|oom-killer'" "$OOM_LOG_PATHFILE" '' 1
RunAndLog "$GREP_CMD -i 'out of memory\|oom-killer' /mnt/HDA_ROOT/.logs/kmsg" "$OOM_LOG_PATHFILE" '' 1
DebugInfoMinSepr

FuncExit
Expand Down Expand Up @@ -962,7 +962,7 @@ CheckEnv()
local installed_ver=''
local target_packages=''

if [[ $($CAT_CMD /mnt/HDA_ROOT/.logs/kmsg | $GREP_CMD -i 'out of memory\|oom-killer' | $WC_CMD -l) -gt 0 ]]; then
if [[ $($GREP_CMD -i 'out of memory\|oom-killer' /mnt/HDA_ROOT/.logs/kmsg | $WC_CMD -l) -gt 0 ]]; then
ShowAsWarn "the $(TextBrightRed 'Out-Of-Memory killer') has been triggered ... check for $(TextBrightRed inactive) QPKGs"
fi

Expand Down Expand Up @@ -4601,7 +4601,7 @@ _DisplayAsStatusReportItemLine_()
in-progress)
action_msg+=" ($(TextBrightOrange $result))"
;;
failed)
aborted|failed)
action_msg+=" ($(TextBrightRed $result))"
esac
else
Expand Down Expand Up @@ -4655,7 +4655,7 @@ _DisplayAsStatusReportItemLine_()
in-progress)
action_msg+=" ($(TextBrightOrange $result))"
;;
failed)
aborted|failed)
action_msg+=" ($(TextBrightRed $result))"
esac
else
Expand Down Expand Up @@ -8036,6 +8036,10 @@ IncludeReportFooter()
DisplayAsIndentQuotedInfoItem "$(TextBrightRed disabled)" "QPKG won't start at bootup. Enable it first, then start it"
fi

if [[ -e "$REPORT_FLAGS_PATH"/result-aborted ]]; then
DisplayAsIndentQuotedInfoItem "($(TextBrightRed aborted))" 'last action was aborted'
fi

if [[ -e "$REPORT_FLAGS_PATH"/result-failed ]]; then
DisplayAsIndentQuotedInfoItem "($(TextBrightRed failed))" 'last action failed'
fi
Expand Down
2 changes: 1 addition & 1 deletion support/vars.source
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Project:
#* https://git.io/sherpa
#
#* Forum:
#* https://forum.qnap.com/viewtopic.php?f=320\&t=132373
#* https://forum.qnap.com/viewtopic.php?t=132373
EOB

read -rd '' tested_msg << EOB
Expand Down
3 changes: 3 additions & 0 deletions workshop/ideas.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* When building status report, check if OOM killer has been active.
- Check killed pids against inactive daemons and report as-such.

* Takes 3.5 to 6 seconds to build QPKG states on Laura.
- Should be able to do this quicker.
- Calculate QPKG features separate to states and cache/load these from file next time?
Expand Down
2 changes: 0 additions & 2 deletions workshop/issues.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ Observed issues:

-------------------------------------------------------------------------------------------------------------------------

* Create new switch for double-forked daemon processes? This should disable `screen` launching.

* If installed QPKGs are disabled, then upgraded, upgrade result is "failed".

* 'sherpa enable-auto-update active' is not running 'enable-auto-update' action.
Expand Down

0 comments on commit b781a5a

Please sign in to comment.