commit | 383a1b825a83523c50a12ccd8bffa7532bec2706 | [log] [tgz] |
---|---|---|
author | Ubuntu <ubuntu@onos1vpc.(none)> | Wed Jan 30 17:58:03 2013 +0000 |
committer | Ubuntu <ubuntu@onos1vpc.(none)> | Wed Jan 30 17:58:03 2013 +0000 |
tree | fef21f3ab91727f96ad8b71ef760d4a8a35241b9 | |
parent | 2a64c8a9bd0a683054f0e304711752fd90f3c898 [diff] |
modified
diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..d6aa010 --- /dev/null +++ b/start.sh
@@ -0,0 +1,9 @@ +#! /bin/sh +if [ -f floodlight.onos1vpc.log ]; then + mv floodlight.onos1vpc.log floodlight.onos1vpc.log.1 +fi +ppid=`ps -edalf |grep java |grep floodlight.jar | awk '{print $4}'` +if [ x$ppid != "x" ]; then + sudo kill -KILL $ppid +fi +java -jar target/floodlight.jar > floodlight.onos1vpc.log 2>&1 &