#!/bin/sh pid=$(ps -elf | grep jrebel-license-active-server | grep -v grep | awk '{print $4}') if [ $pid != "" ]; then kill -9 $pid fi nohup ./jrebel-license-active-server --path=/jrebel --port=12345 &