shell script to start, stop and restart a JAR under linux
807599Feb 18 2007 — edited Sep 25 2008Hi everyone,
Does anyone have idea to write a shell script to start, stop and restart a JAR under linux? it can also indicate a method or parameter? Thanks!
this JAR inculdes a class with main method like this:
public class Client(){
public Client(String name){
...
}
public void stopClient(){
...
}
public static void main(String[] args){
new Client("/tmp/text.log");
}
}