comparison src/libervia.sh @ 565:0090285a5689

fixes launching script when running with no argument
author souliane <souliane@mailoo.org>
date Sat, 04 Oct 2014 10:32:52 +0200
parents 7e8356479fef
children d020f42b5a79
comparison
equal deleted inserted replaced
564:fed185c95f1c 565:0090285a5689
84 fi 84 fi
85 else 85 else
86 echo "bad argument, please use one of (stop, debug, fg, status) or no argument" 86 echo "bad argument, please use one of (stop, debug, fg, status) or no argument"
87 exit 1 87 exit 1
88 fi 88 fi
89 shift
89 fi 90 fi
90 91
91 92
92 #Don't change the next lines 93 #Don't change the next lines
93 PLUGIN_OPTIONS="-d .." 94 PLUGIN_OPTIONS="-d .."
100 log_dir=`dirname "$LOG_FILE"` 101 log_dir=`dirname "$LOG_FILE"`
101 if [ ! -d $log_dir ] ; then 102 if [ ! -d $log_dir ] ; then
102 mkdir $log_dir 103 mkdir $log_dir
103 fi 104 fi
104 105
105 shift
106
107 twistd $MAIN_OPTIONS $ADDITIONAL_OPTIONS $APP_NAME_FILE $PLUGIN_OPTIONS $@ 106 twistd $MAIN_OPTIONS $ADDITIONAL_OPTIONS $APP_NAME_FILE $PLUGIN_OPTIONS $@