mongoose: startup script must use short options
PATCH v2 1/1 mongoose: startup script must use short options
From: Davide Viti <[email protected]>
mongoose fails to start because long options are not supported (as shown by "mongoose -h")
--- package/mongoose/S85mongoose | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/mongoose/S85mongoose +1 -1
@@ -10,7 +10,7 @@ NAME=mongoose DESC="Mongoose HTTP server" DAEMON=`which mongoose` -OPTIONS="-max_threads 3 -root /var/www -ports 80" +OPTIONS="-t 3 -r /var/www -p 80" [ -e /etc/default/mongoose ] && . /etc/default/mongoose
Signature · 1 line
1.8.1.2
PATCH v2 1/1 mongoose: startup script must use short options
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Davide" == Davide Viti <[email protected]> writes:
From: Davide Viti <[email protected]>
mongoose fails to start because long options are not supported (as shown by "mongoose -h")
That's not really true:
./mongoose -h
Mongoose version 3.7 (c) Sergey Lyubka, built Nov 25 2013 Usage:
mongoose -A <htpasswd_file> <realm> <user> <passwd> mongoose <config_file>
mongoose [-option value ...]
OPTIONS:
-C cgi_pattern (default: "**.cgi$|**.pl$|**.php$")
-E cgi_environment (default: "")
-G put_delete_auth_file (default: "")
-I cgi_interpreter (default: "")
-P protect_uri (default: "")
-R authentication_domain (default: "mydomain.com")
-S ssi_pattern (default: "**.shtml$|**.shtm$")
-T throttle (default: "")
-a access_log_file (default: "")
-d enable_directory_listing (default: "yes")
-e error_log_file (default: "")
-g global_auth_file (default: "")
-i index_files (default: "index.html,index.htm,index.cgi,index.shtml,index.php") -k enable_keep_alive (default: "no")
-l access_control_list (default: "")
-m extra_mime_types (default: "")
-p listening_ports (default: "8080")
-r document_root (default: ".")
-s ssl_certificate (default: "")
-t num_threads (default: "20")
-u run_as_user (default: "")
-w url_rewrite_patterns (default: "")
-x hide_files_patterns (default: "")
-z request_timeout_ms (default: "30000")
Both forms are supported (E.G. -t or -num_threads), but for some reason our init script used invalid arguments, that as far as I can see have never been supported by mongoose.
I also prefer to use the (correct) long options, as that makes it more clear what they do.
I've reworded the commit message to make this clear and committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard