public static void restartService() {
        Process restarter = null;
        try {
            String platform = System.getProperty("os.name").toLowerCase();
            if(platform.contains("windows")) {
                restarter = Runtime.getRuntime().exec("net stop novacomd");
                doProcess(restarter);
                restarter = Runtime.getRuntime().exec("net start novacomd");
                doProcess(restarter);
            } else if(platform.contains("mac")) {
                restarter = Runtime.getRuntime().exec("/usr/local/bin/stop-novacomd");
                doProcess(restarter);
                restarter = Runtime.getRuntime().exec("/usr/local/bin/start-novacomd");
                doProcess(restarter);
            } else if(platform.contains("linux")) {
                restarter = Runtime.getRuntime().exec("stop palm-novacomd");
                doProcess(restarter);
                restarter = Runtime.getRuntime().exec("killall -v -q novacomd");
                doProcess(restarter);
                restarter = Runtime.getRuntime().exec("start palm-novacomd");
                doProcess(restarter);
            }
        } catch(Exception e) {
            e.printStackTrace();
        }
    }