Modifying the configuration and its integrity check [Документация VAS Experts]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:dpi:dpi_components:platform:dpi_admin:admin_chgconf:start [2023/08/29 07:21] edrudichgmailcomen:dpi:dpi_components:platform:dpi_admin:admin_chgconf:start [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Modifying the configuration and it's integrity check ====== 
-{{indexmenu_n>4}} 
  
-In the process of creating and changing the dpi configuration (in the /etc/dpi/fastdpi.conf file) errors are possible, which can intercept with the start of DPI, it is recommended to make changes to a copy of the configuration file first, check it through the check command, and only then replace the original config and restart the DPI. 
- 
-**Example** of recommended actions: 
- 
-<code bash> 
-#create backup file 
-cp /etc/dpi/fastdpi.conf /etc/dpi/fastdpi.conf.new 
-#edit backup file 
-vi /etc/dpi/fastdpi.conf.new 
-#integrity test  
-fastdpi -p -c /etc/dpi/fastdpi.conf.new 
-#Result check configuration : SUCCESS means that configuration is valid 
-#replase the original configuration file with a newly created one 
-cp /etc/dpi/fastdpi.conf.new /etc/dpi/fastdpi.conf 
-#restart dpi 
-service fastdpi restart 
-</code>