1 package org.wamblee.upnpmonitor;
4 import java.io.FileInputStream;
5 import java.io.InputStream;
6 import java.util.Properties;
7 import java.util.logging.Logger;
11 private static final Logger LOGGER = Logger.getLogger(Main.class.getName());
13 public static void main(String[] aArgs) throws Exception {
15 String propertyFile = System
16 .getProperty("org.wamblee.upnpmonitor.propertyfile");
17 Properties props = new Properties();
18 InputStream is = new FileInputStream(new File(propertyFile));
22 Config config = Config.parse(props);
23 LOGGER.info("COnfiguration: " + config);
25 final Monitor monitor = new Monitor(config);
27 Runtime.getRuntime().addShutdownHook(new Thread() {
31 .println("Signal caught, terminating monitor and executing shutdown command");