Mercurial > libervia-backend
view src/sat.sh @ 226:d8bb72f00eec
distutils install: fixed plugin import and log file path
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 05 Jan 2011 02:39:35 +0100 |
parents | fd9b7834d98a |
children | a7079e835432 |
line wrap: on
line source
#!/bin/sh 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