This commit is contained in:
olli
2024-06-26 11:10:27 +02:00
parent 05475361e8
commit 1e5e310fc8
3 changed files with 92 additions and 60 deletions

View File

@@ -34,7 +34,7 @@ g_tmp="$g_tmp/g_$g_scriptname-$$"
# START and EXIT Notification
g_trap_exit="g_logger EXITING $g_scriptname ; rm -r $g_tmp ; g_kill_all_background_jobs >/dev/null 2>&1"
trap "$g_trap_exit" EXIT
trap "$g_trap_exit" INT TERM EXIT
g_syslogtag="g_bash-script:$g_scriptname[$$]"
[ $g_scriptname = "bash" ] || g_logger STARTING $g_scriptname