old_contents: #! /usr/bin/python3
  # -*- coding: utf8 -*-
  # The global setting file for nv-middlebox.
  
  __author__ = "Sugesh Chandran"
  __copyright__ = "Copyright (C) The neoview team."
  __license__ = "GNU Lesser General Public License"
  __version__ = "1.0"
  
  import logging
  
  #nv-middle-box common settings
  NV_MID_BOX_APP_NAME = "nv-middle-box"
  NV_MID_BOX_RUN_DIR = "/usr/local/var/run/nv-middlebox"
  # Middlebox PID for the daemon.
  NV_MID_BOX_PID = "/usr/local/var/run/nv-middlebox/nv_middlebox.pid"
  #Middle box camera streaming file Directory
  NV_MID_BOX_CAM_STREAM_DIR = "/tmp/camera"
  
  # The size of file generated by camera thread to be valid.
  # Any file less than doesnt copy to the webserver
  # Should be specified in MB.
  NV_CAM_VALID_FILE_SIZE_MB = 4   # 4MB
  
  # Camera connection timeout.
  # The timeout period to consider a camera is dead. camera will be considered as
  # disconnected when filesize < NV_CAM_VALID_FILE_SIZE_MB for a period of
  # NV_CAM_CONN_TIMEOUT.
  # The minimum timeout woule be atleast 5 min.
  NV_CAM_CONN_TIMEOUT = 300  # 300 sec/5 min
  
  # nv-middle-box logging Settings
  NV_DEFAULT_LOG_LEVEL = logging.DEBUG
  #NV_LOG_FILE = "/usr/local/var/log/nv-middlebox/nv_middlebox.log"
  NV_LOG_FILE = "/tmp/nv_middlebox.log"
  NV_LOG_FORMAT = "%(asctime)s - %(levelname)s - %(funcName)s - %(message)s"
  
  
  #nv-middlebox db settings
  NVDB_SQLALCHEMY_DB = 'sqlite:///:memory:' #Inmemory DB
  
  #NVDB_SQLALCHEMY_DB = 'sqlite:///nvdb.db' #Relative path db
  #NVDB_SQLALCHEMY_DB = 'sqlite:////tmp/nvdb.db' #absolute path db
  
  #nv-middlebox database logging settings.
  NVDB_DEFAULT_LOG_LEVEL = logging.DEBUG
  #NVDB_LOG_FILE = "/usr/local/var/log/nv-middlebox/nvdb.log"
  NVDB_LOG_FILE = "/tmp/nvdb.log"
  NVDB_LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"
  
new_contents: #! /usr/bin/python3
  # -*- coding: utf8 -*-
  # The global setting file for nv-middlebox.
  
  __author__ = "Sugesh Chandran"
  __copyright__ = "Copyright (C) The neoview team."
  __license__ = "GNU Lesser General Public License"
  __version__ = "1.0"
  
  import logging
  
  #nv-middle-box common settings
  NV_MID_BOX_APP_NAME = "nv-middle-box"
  NV_MID_BOX_RUN_DIR = "/usr/local/var/run/nv-middlebox"
  # Middlebox PID for the daemon.
  NV_MID_BOX_PID = "/usr/local/var/run/nv-middlebox/nv_middlebox.pid"
  #Middle box camera streaming file Directory
  NV_MID_BOX_CAM_STREAM_DIR = "/tmp/camera"
  
  # The size of file generated by camera thread to be valid.
  # Any file less than doesnt copy to the webserver
  # Should be specified in MB.
  NV_CAM_VALID_FILE_SIZE_MB = 4   # 4MB
  
  # Camera connection timeout.
  # The timeout period to consider a camera is dead. camera will be considered as
  # disconnected when filesize < NV_CAM_VALID_FILE_SIZE_MB for a period of
  # NV_CAM_CONN_TIMEOUT.
  # The minimum timeout woule be atleast 5 min.
  NV_CAM_CONN_TIMEOUT = 300  # 300 sec/5 min
  
  # nv-middle-box logging Settings
  NV_DEFAULT_LOG_LEVEL = logging.DEBUG
  #NV_LOG_FILE = "/usr/local/var/log/nv-middlebox/nv_middlebox.log"
  NV_LOG_FILE = "/tmp/nv_middlebox.log"
  NV_LOG_FORMAT = "%(asctime)s - %(levelname)s - %(funcName)s - %(message)s"
  
  
  #nv-middlebox db settings
  #NVDB_SQLALCHEMY_DB = 'sqlite:///:memory:' #Inmemory DB
  
  #NVDB_SQLALCHEMY_DB = 'sqlite:///nvdb.db' #Relative path db
  NVDB_SQLALCHEMY_DB = 'sqlite:////tmp/nvdb.db' #absolute path db
  
  #nv-middlebox database logging settings.
  NVDB_DEFAULT_LOG_LEVEL = logging.DEBUG
  #NVDB_LOG_FILE = "/usr/local/var/log/nv-middlebox/nvdb.log"
  NVDB_LOG_FILE = "/tmp/nvdb.log"
  NVDB_LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"
  
subject: Use the permanent DB than the IN-RAM DB.