comparison src/libervia.sh @ 569:fb81aeccde8b

restored commit 0090285a5689: the fix was actualy good, my bad
author Goffi <goffi@goffi.org>
date Fri, 10 Oct 2014 16:45:53 +0200
parents d020f42b5a79
children acde4b729034
comparison
equal deleted inserted replaced
568:d020f42b5a79 569:fb81aeccde8b
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 $@