Skip to content

Instantly share code, notes, and snippets.

@minghan minghan/EMStart.sh
Created Mar 20, 2012

Embed
What would you like to do?
#!/bin/sh
rmiregistry &
java EventManager &
echo "Started EM"
clean_up()
{
pkill rmiregistry
ps -ef | grep "\bjava EventManager" | awk '{print $2}' | xargs kill -9
echo "\nTerminated rmiregistry, EventManager"
exit
}
trap clean_up 1 2 #SIGHUP, SIGINT
while :
do
sleep 1000
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.