blob: d6aa010abfb059c1675ff9e7a8cdbc4410beba2b [file] [log] [blame]
Ubuntu383a1b82013-01-30 17:58:03 +00001#! /bin/sh
2if [ -f floodlight.onos1vpc.log ]; then
3 mv floodlight.onos1vpc.log floodlight.onos1vpc.log.1
4fi
5ppid=`ps -edalf |grep java |grep floodlight.jar | awk '{print $4}'`
6if [ x$ppid != "x" ]; then
7 sudo kill -KILL $ppid
8fi
9java -jar target/floodlight.jar > floodlight.onos1vpc.log 2>&1 &