diff options
Diffstat (limited to 'framework/src/onos/tools/package/bin/onos-jpenable')
-rwxr-xr-x | framework/src/onos/tools/package/bin/onos-jpenable | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/src/onos/tools/package/bin/onos-jpenable b/framework/src/onos/tools/package/bin/onos-jpenable new file mode 100755 index 00000000..7c69602a --- /dev/null +++ b/framework/src/onos/tools/package/bin/onos-jpenable @@ -0,0 +1,7 @@ +#!/bin/bash + +kpid=$(ps -ef | grep karaf.main.Main | grep -v grep | cut -c10-15 | tr -d ' ') + +[ -z "$kpid" ] && echo "No ONOS!" && exit 1 + +/opt/jprofiler8/bin/jpenable --gui --port=8849 --pid=$kpid |