-
Notifications
You must be signed in to change notification settings - Fork 36
Conversation
All option have a default value. This option are overwritten if this option is passed as command line argument. If there is config file, is loaded and the option listed in it will be set as the valid one, but they will be still overwritten by the ones passed as cmd option. This means that cmd options have priority over the other ones. The config file must have a seccion with the wrapper name. As ospd is a base lib for multiple wrappers, each wrapper can have each own section with its configuration. The default path for the config file is /home/<user>/.config/ospd.conf E.g. for ospd-openvas: `` [OSPD - openvas] unix_socket = /tmp/openvas.sock log_level = DEBUG ``
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good just some empty lines and an unused import.
Co-Authored-By: Björn Ricks <[email protected]>
Co-Authored-By: Björn Ricks <[email protected]>
Co-Authored-By: Björn Ricks <[email protected]>
Co-Authored-By: Björn Ricks <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #122 +/- ##
=========================================
- Coverage 69.72% 69.7% -0.03%
=========================================
Files 11 12 +1
Lines 1612 1667 +55
=========================================
+ Hits 1124 1162 +38
- Misses 488 505 +17
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #122 +/- ##
=========================================
- Coverage 69.72% 69.7% -0.03%
=========================================
Files 11 12 +1
Lines 1612 1667 +55
=========================================
+ Hits 1124 1162 +38
- Misses 488 505 +17
Continue to review full report at Codecov.
|
All option have a default value. This option are overwritten if this
option is passed as command line argument.
If there is config file, is loaded and the option
listed in it will be set as the valid one, but they will be still
overwritten by the ones passed as cmd option.
This means that cmd options have priority over the other ones.
The config file must have a section with the wrapper name. As ospd
is a base lib for multiple wrappers, each wrapper can have each own
section with its configuration.
The default path for the config file is /home//.config/ospd.conf
E.g. for ospd-openvas:
[OSPD - openvas]
unix_socket = /tmp/openvas.sock
log_level = DEBUG