added notify to all needed in unraid essentials
This commit is contained in:
@@ -52,7 +52,6 @@ get_user_script_pids() {
|
||||
|
||||
# Kills all running User Script processes one by one.
|
||||
# Reports each PID killed or skipped in dry run mode.
|
||||
# Checks remaining processes after kill to confirm cleanup.
|
||||
stop_user_scripts() {
|
||||
local pids
|
||||
pids=$(get_user_script_pids)
|
||||
@@ -117,8 +116,10 @@ else
|
||||
REMAINING=$(get_user_script_pids)
|
||||
if [[ -z "$REMAINING" ]]; then
|
||||
echo "$ICON_DONE Status: $ICON_SUCCESS ALL PROCESSES STOPPED"
|
||||
notify "User Scripts stopped on $(hostname)" "User Script Stop" "warning"
|
||||
else
|
||||
echo "$ICON_WARN Status: $ICON_WARN SOME PROCESSES MAY STILL BE RUNNING"
|
||||
notify "User Script stop completed but some processes may still be running on $(hostname)" "User Script Stop" "warning"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user