3 BINORTEMANAGER=ortemanager
6 ORTEMANAGER=$(ps -e | grep $BINORTEMANAGER | grep -v grep)
7 JOYD=$(ps -e | grep $BINJOYD | grep -v grep)
11 if [ -z "$ORTEMANAGER" ]; then
12 echo "Ortemanager is not running. I'm starting it now!"
13 $BINORTEMANAGER -p 10.1.1.1 > /dev/null &
15 echo "ORTEManager is already running."
21 if [ -z "$JOYD" ]; then
23 $BINJOYD > /dev/null &
25 echo "Joyd is running. Restarting it now!"
27 $BINJOYD > /dev/null &
36 killall $BINORTEMANAGER