                                "from ini file" iniconfig)
                  (ini/read-ini iniconfig))
         section (or (config inisection)
-                    (die (str "section " inisection " missing in " iniconfig) 1))
+                    (die (str "section " inisection " missing in " iniconfig)))
+        fscrawler-section (or (config "fscrawler") {})
+        max-size (Integer. (fscrawler-section "max_size"))
         filesystems (trimmed-lines-from-string (section "filesystems"))]
     (when (zero? (count filesystems))
-      (die (str "no filesystems defined in section " inisection " in " iniconfig) 1))
-
+      (die (str "no filesystems defined in section " inisection " in " iniconfig)))
+
+    (println "max-size is" max-size)
     (periodically 250 reap-futures)
 
     (let [futures (doall (for [filesystem filesystems]

          @f
          (catch Throwable err
            (trace/print-stack-trace err)
            (die (str "thread unexpectedly died with error " err) 1)))))))

    (lcons/blocking-subscribe ch queue-name handle-message :auto-ack false)))

(defn die
  [msg & {:keys [exit-code] :or {exit-code 1}}]
  (println "Error:" msg)
  (System/exit exit-code))


(defn setup-logging!
