diff options
author | williamchitto <williamchitto@gmail.com> | 2012-08-06 11:41:33 -0300 |
---|---|---|
committer | williamchitto <williamchitto@gmail.com> | 2012-08-06 11:41:33 -0300 |
commit | 8524c56fafb4a9da0a3c33f972b134e8c50c8489 (patch) | |
tree | 68828cc57a74fb94672a4879f4397ac5e678d094 /src/Main.java | |
parent | 5a80591e29ee7b05ed50737e3d5d6bb98c1f59a3 (diff) | |
parent | 07a1959bad3d024d79b10a98c306a6bb4385b5df (diff) | |
download | trackermap-server-8524c56fafb4a9da0a3c33f972b134e8c50c8489.tar.gz trackermap-server-8524c56fafb4a9da0a3c33f972b134e8c50c8489.tar.bz2 trackermap-server-8524c56fafb4a9da0a3c33f972b134e8c50c8489.zip |
Repo merged with upstream
Diffstat (limited to 'src/Main.java')
-rw-r--r-- | src/Main.java | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/Main.java b/src/Main.java deleted file mode 100644 index 69c029c61..000000000 --- a/src/Main.java +++ /dev/null @@ -1,34 +0,0 @@ -import org.traccar.Server; -import org.traccar.helper.Log; - -public class Main { - - public static void main(String[] args) throws Exception { - - final Server service = new Server(); - - if(args.length > 0){ - Log.info("Using parameterized config: " + args[0]); - service.init(args); - } - else{ - String[] argsDefault = new String[]{"setup\\windows\\windows.cfg"}; - Log.info("Using default config: " + argsDefault[0]); - service.init(argsDefault); - } - - Log.info("starting server..."); - - service.start(); - - // Shutdown server properly - Runtime.getRuntime().addShutdownHook(new Thread() { - @Override - public void run() { - Log.info("shutting down server..."); - service.stop(); - } - }); - - } -} |