OpenSCAP / openscap-daemon

Manages continuous scans of your infrastructure
https://www.open-scap.org/tools/openscap-daemon
GNU Lesser General Public License v2.1
106 stars 32 forks source link

Issue #66: Daemon fails to start when configuration file is invalid #67

Closed jan-cerny closed 8 years ago

jan-cerny commented 8 years ago

This commit catches an exception that appears if a wrong configuration file is provided. The exception causes that daemon fails to start.

mpreisler commented 8 years ago

Isn't that a good thing that it fails to start with invalid config?

ybznek commented 8 years ago

I agree with @mpreisler. People don't have reason to check journal of running daemon and they can use configuration which they don't want, when we ignore config errors. I personally prefer to have some nice error message and stop daemon if configuration is invalid.

jan-cerny commented 8 years ago

@mpreisler I would prefer @ybznek 's solution: If configuration file is invalid, print a nice error message and stop the deamon.

mpreisler commented 8 years ago

Sure, see https://github.com/OpenSCAP/openscap-daemon/issues/66#issuecomment-193860229

jan-cerny commented 8 years ago

@mpreisler Thanks!