Re: [PATCH] instaweb: if no httpd is specified and lighttpd doesn't exist, fall back on apache2.
- From
David Symonds <dsymonds@gmail.com>
- Date
- May 11, 2008, 11:58 UTC
- Message-ID
- <ee77f5c20805110458s6f1e4908k38be50753ba38d09@mail.gmail.com>
- In-Reply-To
- <1210483565-12415-1-git-send-email-nathans@gmail.com>
On Sun, May 11, 2008 at 3:26 PM, nathan spindel <nathans@gmail.com> wrote:
Show 12 quoted lines
> -# if installed, it doesn't need further configuration (module_path) > -test -z "$httpd" && httpd='lighttpd -f' > +# use lighttpd if it exists, otherwise use apache2 > +if test -z "$httpd" > +then > + if type "lighttpd" > /dev/null 2>&1; > + then > + httpd="lighttpd -f" > + else > + httpd="apache2 -f" > + fi > +fi
I personally would prefer to use webrick over apache2, since it's much more lightweight. That's just my two cents.
Dave.