Mercurial > libervia-backend
view src/sat.sh @ 238:83d2bc0abf2a
version, README, CHANGELOG and INSTALL updates
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 12 Jan 2011 18:21:08 +0100 |
parents | a7079e835432 |
children | 0ed5553b5313 |
line wrap: on
line source
#!/bin/sh #if there is one argument which is "stop", then we kill SàT if [ $# -eq 1 ];then if [ $1 = "stop" ];then echo "Terminating Salut à Toi" pkill -f "twistd.*sat/sat.tac" exit 0 fi fi NAME='sat' PID_FILE="/tmp/$NAME.pid" LOG_FILE=~/".$NAME/$NAME.log" DAEMON="n" MAIN_OPTIONS="-${DAEMON}oy" TAP_PATH="./" TAP_FILE="$NAME.tac" #Don't change the next line AUTO_OPTIONS="" ADDITIONAL_OPTIONS="--pidfile $PID_FILE --logfile $LOG_FILE $AUTO_OPTIONS" log_dir=`dirname "$LOG_FILE"` if [ ! -d $log_dir ] ; then mkdir $log_dir fi twistd $MAIN_OPTIONS $TAP_PATH$TAP_FILE $ADDITIONAL_OPTIONS