diff options
author | John Estabrook <jestabro@vyos.io> | 2021-03-22 09:36:19 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2021-03-22 10:11:28 -0500 |
commit | eeb9687bb9aaf6050b0a8759767f08ab8faac442 (patch) | |
tree | 600c4e382ec57773aebba548758b1b1e8150493c | |
parent | 8d57a34e02fa641f44bc78ea48a192fd3aa2dc7d (diff) | |
download | vyos-1x-eeb9687bb9aaf6050b0a8759767f08ab8faac442.tar.gz vyos-1x-eeb9687bb9aaf6050b0a8759767f08ab8faac442.zip |
configd: T3302: check vyos-config-status to determine if in boot session
-rwxr-xr-x | src/services/vyos-configd | 2 |
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' |