diff --git a/html/cgi-bin/guardian.cgi b/html/cgi-bin/guardian.cgi
index 42cdcf6bb..b85691ba6 100644
--- a/html/cgi-bin/guardian.cgi
+++ b/html/cgi-bin/guardian.cgi
@@ -977,6 +977,9 @@ sub BuildConfiguration() {
close(FILE);
+ # Generate ignore file.
+ &GenerateIgnoreFile();
+
# Check if guardian should be started or stopped.
if($settings{'GUARDIAN_ENABLED'} eq 'on') {
if($pid > 0) {