From eeb9687bb9aaf6050b0a8759767f08ab8faac442 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Mon, 22 Mar 2021 09:36:19 -0500 Subject: configd: T3302: check vyos-config-status to determine if in boot session --- src/services/vyos-configd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/services/vyos-configd') diff --git a/src/services/vyos-configd b/src/services/vyos-configd index 8547b5f56..a4c982e2a 100755 --- a/src/services/vyos-configd +++ b/src/services/vyos-configd @@ -185,7 +185,7 @@ def initialization(socket): session_out = None # if not a 'live' session, for example on boot, write to file - if not session_out or '/dev/pts' not in session_out: + if not session_out or not os.path.isfile('/tmp/vyos-config-status'): session_out = script_stdout_log session_mode = 'a' -- cgit v1.2.3