summaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-03-22 09:36:19 -0500
committerJohn Estabrook <jestabro@vyos.io>2021-05-12 10:45:49 -0500
commit7bf6f5179dfe53ef990e0183bbd335da994090fc (patch)
tree46363dfa7f8cee265ec11eea26f2e27cc5ae968b /src/services
parentfe12810cc65f8db51d8dbadd00835828e8e410c8 (diff)
downloadvyos-1x-7bf6f5179dfe53ef990e0183bbd335da994090fc.tar.gz
vyos-1x-7bf6f5179dfe53ef990e0183bbd335da994090fc.zip
configd: T3302: check vyos-config-status to determine if in boot session
(cherry picked from commit eeb9687bb9aaf6050b0a8759767f08ab8faac442)
Diffstat (limited to 'src/services')
-rwxr-xr-xsrc/services/vyos-configd2
1 files changed, 1 insertions, 1 deletions
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'