diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2014-10-09 19:04:48 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2014-10-10 14:42:17 -0500 |
commit | 5e73017f3f6422a6d3302c3dea281c0702bd5f1c (patch) | |
tree | f723640a5f0c19f20db61537173128067bd93903 /lazystarter.sh | |
parent | 53463ad71d9f446ae801b437048be38f02474b15 (diff) | |
download | mediagoblin-5e73017f3f6422a6d3302c3dea281c0702bd5f1c.tar.lz mediagoblin-5e73017f3f6422a6d3302c3dea281c0702bd5f1c.tar.xz mediagoblin-5e73017f3f6422a6d3302c3dea281c0702bd5f1c.zip |
Conditionally give paste or gunicorn help
Diffstat (limited to 'lazystarter.sh')
-rwxr-xr-x | lazystarter.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lazystarter.sh b/lazystarter.sh index f8da8aef..6358f47c 100755 --- a/lazystarter.sh +++ b/lazystarter.sh @@ -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." |