summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/snmptrapd.json4
-rw-r--r--snmptrap/mod/trapd_io.py2
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)