Skip to content

Commit

Permalink
Changed start and stop scripts for embodiment for speed and clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex van der Peet authored and Alex van der Peet committed Jul 23, 2013
1 parent 0527fe4 commit 297785a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
6 changes: 6 additions & 0 deletions scripts/embodiment/start_embodiment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,20 @@
./stop_embodiment.sh
sleep 2

echo "Finished stopping processes, cleaning up last session..."

if [ "$1" != "noclean" ]
then
# Remove the log and data dirs from last embodiment session
./cleanup.sh
fi

echo "Cleanup complete, launching spawner process..."

./spawner &

# print the occupation of port for spawner, make sure it starts correctly.
sleep 10
lsof -i:16313

echo "Embodiment startup procedure complete, please connect."
19 changes: 10 additions & 9 deletions scripts/embodiment/stop_embodiment.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/sh
echo "Stopping embodiment processes, please wait..."

killall -9 oac &> /dev/null
killall -9 spawner &> /dev/null
killall -9 router &> /dev/null
killall -9 learningServer &> /dev/null
killall -9 learningServer_CogServer &> /dev/null
killall -9 LSMocky &> /dev/null
killall -9 pvpSimulator &> /dev/null
killall -9 pbTester &> /dev/null
killall -9 -q oac
killall -9 -q spawner
killall -9 -q router
killall -9 -q learningServer
killall -9 -q learningServer_CogServer
killall -9 -q LSMocky
killall -9 -q pvpSimulator
killall -9 -q pbTester

rm -rf *.ipc &> /dev/null
rm -rf *.ipc

0 comments on commit 297785a

Please sign in to comment.