Skip to content

Commit

Permalink
add rules checking to configtest
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Stolle committed Jun 9, 2012
1 parent 5de9cff commit 8b3ee0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/org/graylog2/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,12 @@ public static void main(String[] args) {
System.exit(1);
}

// If we only want to check our configuration, we can gracefully exit here
// If we only want to check our configuration, we just initialize the rules engine to check if the rules compile
if (commandLineArguments.isConfigTest()) {
GraylogServer server = new GraylogServer();
DroolsInitializer drools = new DroolsInitializer(server, configuration);
drools.initialize();
// rules have been checked, exit gracefully
System.exit(0);
}

Expand Down

0 comments on commit 8b3ee0c

Please sign in to comment.