make jinetd relocatable
[org.ibex.jinetd.git] / src / org / ibex / jinetd / Main.java
index e32a32c..a8ae366 100644 (file)
@@ -5,12 +5,11 @@ import java.util.*;
 
 public class Main {
 
-    public static Root root = new Root(System.getProperty("jinetd.root", "/jinetd"));
     public static void main(String[] s) throws Exception {
         Log.color = true;
+        Root root = new Root(Root.root);
         while(true) try {
             Thread.sleep(1000);
-            //Log.info(Main.class, "scanning...");
             if (root != null) root.scan();
         } catch (Exception e) { Log.error(Main.class, e); }
     }