start.sh 318 Bytes
Newer Older
Juon Kawakami's avatar
init  
Juon Kawakami committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
trap "echo 'killing...'; ./kill.sh; exit" INT

. functions.sh

processArgs $*

# Delete old logs
rm -f $LOGDIR/*.log
sh kill.sh

# startGIS
startKernel --nomenu
startSims
startViewer
startViewerEventLogger

echo "Start your agents"
waitFor $LOGDIR/kernel.log "Kernel has shut down" 30

kill $PIDS
./kill.sh