comparison src/sat.sh @ 358:f147b778511a

core: local_dir can now be overrided (usefull to launch 2 instances at the same time)
author Goffi <goffi@goffi.org>
date Mon, 06 Jun 2011 18:34:40 +0200
parents 31804aa9d3da
children e83d0c21d64d
comparison
equal deleted inserted replaced
357:d98b7391d76c 358:f147b778511a
14 fi 14 fi
15 fi 15 fi
16 16
17 NAME='sat' 17 NAME='sat'
18 18
19 PID_FILE="/tmp/$NAME.pid" 19 if [ -n "$SAT_CONST_local_dir" ];then
20 LOG_FILE=~/".$NAME/$NAME.log" 20 echo "Using overidded local dir: $SAT_CONST_local_dir"
21 PID_FILE="$SAT_CONST_local_dir/$NAME.pid"
22 LOG_FILE="$SAT_CONST_local_dir/$NAME.log"
23 else
24 PID_FILE="/tmp/$NAME.pid"
25 LOG_FILE=~/".$NAME/$NAME.log"
26 fi
21 DAEMON="n" 27 DAEMON="n"
22 MAIN_OPTIONS="-${DAEMON}oy" 28 MAIN_OPTIONS="-${DAEMON}oy"
23 TAP_PATH="./" 29 TAP_PATH="./"
24 TAP_FILE="$NAME.tac" 30 TAP_FILE="$NAME.tac"
25 31