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

This is an old revision of the document!


5 Reconfiguration and configuration review

Errors occured attempting to create or configure the dpi (by configuing the file: /etc/dpi/fastdpi.conf) may cause the dpi fails to start, so it is highly recommended to back up the original configuration file (/etc/dpi/fastdpi.conf), edit this backup file, check it using diagnostic command, and only after that to replace the original file and to restart dpi.

Example of recommended actions:

#create backup file (/etc/dpi/fastdpi.conf.new)
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 if valid
#replase the original configuration file by the newly created one
cp /etc/dpi/fastdpi.conf.new /etc/dpi/fastdpi.conf
#restart dpi
service fastdpi restart