diff src/sat.sh @ 1122:9ae01ccf89c1

core: sat bakcend is now a twisted plugin (no more .tac file)
author Goffi <goffi@goffi.org>
date Sun, 24 Aug 2014 18:44:17 +0200
parents b56374a1f6d6
children 02c26e6630d0
line wrap: on
line diff
--- a/src/sat.sh	Sun Aug 24 18:44:17 2014 +0200
+++ b/src/sat.sh	Sun Aug 24 18:44:17 2014 +0200
@@ -45,7 +45,6 @@
 env=[]
 env.append("PID_DIR='%s'" % join(expanduser(config.get('DEFAULT', 'pid_dir')),''))
 env.append("LOG_DIR='%s'" % join(expanduser(config.get('DEFAULT', 'log_dir')),''))
-
 env.append("APP_NAME='%s'" % C.APP_NAME)
 env.append("APP_NAME_FILE='%s'" % C.APP_NAME_FILE)
 print ";".join(env)
@@ -69,11 +68,9 @@
     fi
 fi
 
-MAIN_OPTIONS="-${DAEMON}oy"
-TAP_PATH="./"
-TAP_FILE="$APP_NAME_FILE.tac"
+MAIN_OPTIONS="-${DAEMON}o"
 
-#Don't change the next line
+#Don't change the next lines
 AUTO_OPTIONS=""
 ADDITIONAL_OPTIONS="--pidfile $PID_FILE --logfile $LOG_FILE $AUTO_OPTIONS $DEBUG"
 
@@ -82,4 +79,4 @@
     mkdir $log_dir
 fi
 
-twistd $MAIN_OPTIONS $TAP_PATH$TAP_FILE $ADDITIONAL_OPTIONS
+twistd $MAIN_OPTIONS $ADDITIONAL_OPTIONS $APP_NAME_FILE