File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ start() {
40
40
41
41
# Launch the application
42
42
start_daemon
43
- $forever start -p $forever_dir --pidfile $pidfile -l $logfile -a -d $INSTANCE_DIR $SOURCE_NAME
43
+ $forever start -p $forever_dir --pidFile $pidfile -l $logfile -a -d $INSTANCE_DIR $SOURCE_NAME
44
44
RETVAL=$?
45
45
else
46
46
echo " Instance already running"
@@ -70,7 +70,7 @@ stop() {
70
70
71
71
getForeverId () {
72
72
local pid=$( pidofproc -p $pidfile )
73
- $forever list -p $forever_dir | $sed -e ' s/\x1b\[[0-9; ]*m//g' | $awk " \$ 4 == \" $pid ] \" { gsub(/[\[\]]/, \"\" , \$ 1 ); print \$ 1 ; }"
73
+ $forever list -p $forever_dir | $sed -e ' s/\x1b\[[0-9; ]*m//g' | $awk " \$ 6 && \$ 6 == \" $pid \" { gsub(/[\[\]]/, \"\" , \$ 2 ); print \$ 2 ; }" ;
74
74
}
75
75
id=$( getForeverId)
76
76
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ var getOptions = cli.getOptions = function (file) {
195
195
options [ key ] = app . config . get ( key ) ;
196
196
} ) ;
197
197
198
- options . sourceDir = file && file [ 0 ] !== '/' ? process . cwd ( ) : '/' ;
198
+ options . sourceDir = options . sourceDir || ( file && file [ 0 ] !== '/' ? process . cwd ( ) : '/' ) ;
199
199
if ( options . sourceDir ) {
200
200
options . spawnWith = { cwd : options . sourceDir } ;
201
201
}
You can’t perform that action at this time.
0 commit comments