From cfeadeb3bd9e098a95f4e960e5c6fac5f52a800a Mon Sep 17 00:00:00 2001 From: garywill Date: Sun, 27 Jul 2025 12:52:59 +0800 Subject: [PATCH] start/exit time in temp config dir --- lnxrouter | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lnxrouter b/lnxrouter index fecd7eb..f5c48b0 100755 --- a/lnxrouter +++ b/lnxrouter @@ -1366,6 +1366,7 @@ clean_iptables() { cleanup() { trap "" SIGINT SIGUSR1 SIGUSR2 EXIT SIGTERM + touch "$CONFDIR/exit_$(date +"%Y-%m-%d_%H:%M:%S.%6N")" echo echo echo "Doing cleanup.. " @@ -1412,6 +1413,8 @@ init_conf_dirs() { #echo "Config dir: $CONFDIR" echo $$ > "$CONFDIR/pid" + touch "$CONFDIR/begin_$(date +"%Y-%m-%d_%H:%M:%S.%6N")" + COMMON_CONFDIR="$TMPDIR/lnxrouter_common.conf" # config dir for all instances mkdir -p "$COMMON_CONFDIR" }