start/exit time in temp config dir

This commit is contained in:
garywill 2025-07-27 12:52:59 +08:00
parent 702c4f28f5
commit cfeadeb3bd
1 changed files with 3 additions and 0 deletions

View File

@ -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"
}