From d9e2705025a81587f7f4ba8dc401b5cf706ccb52 Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Tue, 8 Oct 2013 11:51:50 +0300 Subject: server: daemonize unless in developer mode --- run-server.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'run-server.sh') diff --git a/run-server.sh b/run-server.sh index 24ff0e8..21fb318 100755 --- a/run-server.sh +++ b/run-server.sh @@ -5,13 +5,16 @@ if [ $(basename $0) = run-server.sh ]; then PORT=${1:-8000} + OPTIONS= cd $(dirname $0) else PORT=80 + OPTIONS="-d /var/log/acf2.log --pidfile /var/run/acf2.pid" cd /usr/share/acf2 fi exec uwsgi -M --http-socket :$PORT \ --plugin /usr/lib/uwsgi/lua_plugin.so --lua server.lua \ --remap-modifier 6:0 \ - --static-map /browser=web --static-index client.html + --static-map /browser=web --static-index client.html \ + $OPTIONS -- cgit v1.2.3