//automatic on slave disconnect if(message.equalsIgnoreCase("[" + Global.botNick + "] [Does not compute IOException reading AsyncResponse]")) { if (System.getProperty("os.name").startsWith("Windows")) { try { Runtime.getRuntime().exec("cmd /c net start "+ Global.serviceSlave); } catch(IOException ex){ } sendMessage(channel, Colors.BOLD + Colors.GREEN + "Service automaticly restarted."); } else{ try { String[] cmd = {"/bin/sh", "-c", "/home/drftpd/drftpd/slave.sh restart"}; Runtime.getRuntime().exec(cmd); } catch(IOException ex){ } sendMessage(channel, Colors.BOLD + Colors.GREEN + "Service automaticly restarted."); } }