Errores al arrancar nginx por primera vez

This commit is contained in:
Juan Ferrer Toribio 2017-06-01 11:16:33 +02:00
parent 2ac41f390a
commit f018b3d958
1 changed files with 3 additions and 2 deletions

5
dev.sh
View File

@ -12,11 +12,12 @@ case "$1" in
start|"")
$0 stop
echo "Starting nginx."
"$nginxBin" -c "$nginxConf" -p "$nginxPrefix"
mkdir -p "$nginxPrefix/temp"
"$nginxBin" -c "$nginxConf" -p "$nginxPrefix" 2>> /dev/null
;;
stop)
echo "Stoping nginx."
"$nginxBin" -c "$nginxConf" -p "$nginxPrefix" -s stop
"$nginxBin" -c "$nginxConf" -p "$nginxPrefix" -s stop 2>> /dev/null
;;
*)
echo "Usage: `basename "$0"` [start|stop]"