Skip to content

Commit

Permalink
Truncate the logs before starting the daemons
Browse files Browse the repository at this point in the history
  • Loading branch information
BraulioV committed Feb 16, 2021
1 parent 0e2c8e5 commit b5c8122
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deps/wazuh_testing/wazuh_testing/vulnerability_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ def magic(*args, **kwargs):

func(*args, **kwargs)

control_service('start', daemon='wazuh-modulesd')
control_service('start', daemon='wazuh-db')

# Truncate ossec.log
file.truncate_file(LOG_FILE_PATH)

control_service('start', daemon='wazuh-modulesd')
control_service('start', daemon='wazuh-db')

yield kwargs['request'].param

clean_vuln_and_sys_programs_tables(agent=kwargs['mock_agent'])
Expand Down

0 comments on commit b5c8122

Please sign in to comment.