diff options
author | Ladue, David (dl3158) <dl3158@att.com> | 2018-04-20 22:54:49 -0400 |
---|---|---|
committer | Ladue, David (dl3158) <dl3158@att.com> | 2018-04-21 23:28:48 -0400 |
commit | 125dfdd48b506ae6ee9a1a53098d5d137cda8e9b (patch) | |
tree | 40161c503d5b080c0e659ebfb896eb4b92f51c37 | |
parent | 018989a5554f3c6aec77ce7b2851c63005271c2a (diff) |
fix runtime startup error
Issue-ID: DCAEGEN2-465
Change-Id: I2db760432f18a37427e60045e7a2bab78f03280e
Signed-off-by: Ladue, David (dl3158) <dl3158@att.com>
-rw-r--r-- | etc/snmptrapd.json | 4 | ||||
-rw-r--r-- | snmptrap/mod/trapd_io.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/etc/snmptrapd.json b/etc/snmptrapd.json index 837bc0a..630ebc6 100644 --- a/etc/snmptrapd.json +++ b/etc/snmptrapd.json @@ -38,7 +38,7 @@ "aaf_username": null } }, -"files.runtime_base_dir": "/tmp/opt/app/snmptrap", +"files.runtime_base_dir": "/opt/app/snmptrap", "files.log_dir": "logs", "files.data_dir": "data", "files.pid_dir": "tmp", @@ -46,7 +46,7 @@ "files.snmptrapd_diag": "snmptrapd_prog_diag.log", "files.traps_stats_log": "snmptrapd_stats.csv", "files.perm_status_file": "snmptrapd_status.log", -"files.eelf_base_dir": "/tmp/opt/app/snmptrap/logs", +"files.eelf_base_dir": "/opt/app/snmptrap/logs", "files.eelf_error": "error.log", "files.eelf_debug": "debug.log", "files.eelf_audit": "audit.log", diff --git a/snmptrap/mod/trapd_io.py b/snmptrap/mod/trapd_io.py index 351174f..ef67c69 100644 --- a/snmptrap/mod/trapd_io.py +++ b/snmptrap/mod/trapd_io.py @@ -199,7 +199,7 @@ def open_file(_loc_file_name): try: # open append mode just in case so nothing is lost, but should be # non-existent file - _loc_fd = open(_loc_file_name, 'a') + _loc_fd = open(_loc_file_name, 'a', 1) return _loc_fd except Exception as e: msg = "Error opening " + _loc_file_name + " append mode - " + str(e) |