comparison src/libervia.sh @ 568:d020f42b5a79

revert commit 0090285a5689: the fix is bad and broke extra commands
author Goffi <goffi@goffi.org>
date Fri, 10 Oct 2014 16:28:38 +0200
parents 0090285a5689
children fb81aeccde8b
comparison
equal deleted inserted replaced
567:ee9c7bd266ad 568:d020f42b5a79
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
90 fi 89 fi
91 90
92 91
93 #Don't change the next lines 92 #Don't change the next lines
94 PLUGIN_OPTIONS="-d .." 93 PLUGIN_OPTIONS="-d .."
101 log_dir=`dirname "$LOG_FILE"` 100 log_dir=`dirname "$LOG_FILE"`
102 if [ ! -d $log_dir ] ; then 101 if [ ! -d $log_dir ] ; then
103 mkdir $log_dir 102 mkdir $log_dir
104 fi 103 fi
105 104
105 shift
106
106 twistd $MAIN_OPTIONS $ADDITIONAL_OPTIONS $APP_NAME_FILE $PLUGIN_OPTIONS $@ 107 twistd $MAIN_OPTIONS $ADDITIONAL_OPTIONS $APP_NAME_FILE $PLUGIN_OPTIONS $@