comparison host/start.sh @ 1633:665049cffc02

fix path
author fffilimonov
date Tue, 14 Dec 2021 07:55:47 -0600
parents b735ed134662
children
comparison
equal deleted inserted replaced
1632:0344a535b1db 1633:665049cffc02
12 . luan string:; 12 . luan string:;
13 13
14 mkdir -p logs 2>/dev/null; 14 mkdir -p logs 2>/dev/null;
15 15
16 touch started.lock; 16 touch started.lock;
17 17 sudo $(which nginx) -c $(pwd)/local/nginx.conf;
18 if [ "$1" == "launchd" ]; then 18 if [ "$1" == "launchd" ]; then
19 java -Xms1024M -classpath $CLASSPATH luan.Luan run.luan logs 1>logs/stdout.log 2>logs/stderr.log 19 java -Xms1024M -classpath $CLASSPATH luan.Luan run.luan logs 1>logs/stdout.log 2>logs/stderr.log
20 else 20 else
21 java -Xms1024M -classpath $CLASSPATH luan.Luan run.luan logs 1>logs/stdout.log 2>logs/stderr.log & 21 java -Xms1024M -classpath $CLASSPATH luan.Luan run.luan logs 1>logs/stdout.log 2>logs/stderr.log &
22 22
32 done; 32 done;
33 fi; 33 fi;
34 34
35 checkRunning; 35 checkRunning;
36 fi; 36 fi;
37
38 sudo $(which nginx) -c $(pwd)/local/nginx.conf;