From 037533a6ef6c72e39030e5a8c70fe83b0f493e63 Mon Sep 17 00:00:00 2001 From: Martinski4GitHub <119833648+Martinski4GitHub@users.noreply.github.com> Date: Sun, 25 Jan 2026 23:57:48 -0800 Subject: [PATCH] Code Improvements Improved handling of semaphores for syslog-ng. --- scribe.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/scribe.sh b/scribe.sh index 22eba00..4385f9c 100644 --- a/scribe.sh +++ b/scribe.sh @@ -18,7 +18,7 @@ # curl --retry 3 "https://raw.githubusercontent.com/AMTM-OSR/scribe/master/scribe.h" -o "/jffs/scripts/scribe" && chmod 0755 /jffs/scripts/scribe && /jffs/scripts/scribe install # ################################################################## -# Last Modified: 2026-Jan-15 +# Last Modified: 2026-Jan-25 #----------------------------------------------------------------- ################ Shellcheck directives ################ @@ -34,8 +34,8 @@ ################################################################# readonly script_name="scribe" -readonly scribe_ver="v3.2.7" -readonly scriptVer_TAG="26011523" +readonly scribe_ver="v3.2.8" +readonly scriptVer_TAG="26012523" scribe_branch="develop" script_branch="$scribe_branch" @@ -1723,7 +1723,7 @@ PreInstall_Check() } ##----------------------------------------## -## Modified by Martinski W. [2025-Dec-05] ## +## Modified by Martinski W. [2026-Jan-25] ## ##----------------------------------------## Menu_Install() { @@ -1736,6 +1736,8 @@ Menu_Install() Do_Install "$sng" "FORCE" fi echo + rm -f "$syslogNg_WaitnSEM_FPath" + echo "1" > "$syslogNg_StartSEM_FPath" $S01sng_init start if [ ! -e "$lr_loc" ] @@ -2008,7 +2010,7 @@ Menu_Filters() } ##----------------------------------------## -## Modified by Martinski W. [2025-Jul-07] ## +## Modified by Martinski W. [2026-Jan-25] ## ##----------------------------------------## Menu_Update() { @@ -2041,6 +2043,8 @@ Menu_Update() Copy_SysLogNg_Top_Config "$@" Copy_LogRotate_Global_Options "$@" printf "\n$white %s updated!$std\n" "$script_name" + rm -f "$syslogNg_WaitnSEM_FPath" + echo "1" > "$syslogNg_StartSEM_FPath" sh "$script_loc" filters gotzip nologo sh "$script_loc" status nologo run_scribe=true