Conditionally give paste or gunicorn help
authorChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 10 Oct 2014 00:04:48 +0000 (19:04 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 10 Oct 2014 19:42:17 +0000 (14:42 -0500)
lazystarter.sh

index f8da8aefe2325e9fb13f013aac6e4a957e5dfe2d..6358f47c3cdced0ba541e4afb4cef8e9d82ac7a7 100755 (executable)
@@ -62,8 +62,14 @@ esac
 if [ "$1" = "-h" ]; then
     echo "$0 [-h] [-c filename.ini] [ARGS_to_${starter_cmd} ...]"
     echo ""
-    echo "   For Gunicorn settings, see at:"
-    echo "      http://docs.gunicorn.org/en/19.0/settings.html"
+    if $use_gunicorn; then
+        echo "   For Gunicorn settings, see at:"
+        echo "      http://docs.gunicorn.org/en/19.0/settings.html"
+    else
+        echo "   For example:"
+        echo "         $0 -c fcgi.ini port_number=23371"
+        echo "     or: $0 --server-name=fcgi --log-file=paste.log"
+    fi
     echo ""
     echo "   The configfile defaults to ${ini_prefix}_local.ini,"
     echo "   if that is readable, otherwise ${ini_prefix}.ini."