Your message dated Mon, 21 Jul 2008 09:55:08 -0300
with message-id <[EMAIL PROTECTED]>
and subject line Re: please make it possible to disable lighttpd
has caused the Debian Bug report #491502,
regarding please make it possible to disable lighttpd
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
491502: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=491502
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: lighttpd
Version: 1.4.19-4
Severity: wishlist
Tags: patch
Hi,
lighttpd is the perfect choice for a test webserver for CGI programs.
But one does not need it running all the time, specially on laptops. I
wanted a way to have lighttpd installed, but disabled, so I not waste
RAM and CPU during most of the time when I don't need it. When I need
it, I can manually start it with a custom configuration file, and with
my regular user account.
Please consider applying the attached patch. It makes possible to
disable lighttpd by creating /etc/default/lighttpd with a line like
this:
DISABLE_LIGHTTPD=Y
The patch does not introduce any bashisms in the initscript, and seems
to work well on my system.
Thanks,
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=pt_BR.utf8, LC_CTYPE=pt_BR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lighttpd depends on:
ii libattr1 1:2.4.43-1 Extended attribute shared library
ii libbz2-1.0 1.0.5-0.1 high-quality block-sorting file co
ii libc6 2.7-12 GNU C Library: Shared libraries
ii libfam0 2.7.0-13.3 Client library to control the FAM
ii libldap-2.4-2 2.4.10-1 OpenLDAP libraries
ii libpcre3 7.6-2.1 Perl 5 Compatible Regular Expressi
ii libssl0.9.8 0.9.8g-10.1 SSL shared libraries
ii libterm-readline-perl- 1.0302-1 Perl implementation of Readline li
ii lsb-base 3.2-12 Linux Standard Base 3.2 init scrip
ii mime-support 3.44-1 MIME files 'mime.types' & 'mailcap
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
lighttpd recommends no packages.
-- no debconf information
--
Antonio Terceiro <[EMAIL PROTECTED]>
http://people.softwarelivre.org/~terceiro/
GnuPG ID: 0F9CB28F
Index: debian/init.d
===================================================================
--- debian/init.d (revisão 336)
+++ debian/init.d (cópia de trabalho)
@@ -24,6 +24,13 @@
set -e
+if [ -f /etc/default/lighttpd ]; then
+ . /etc/default/lighttpd
+ if [ "$DISABLE_LIGHTTPD" = 'Y' ] || [ "$DISABLE_LIGHTTPD" = 'y' ]; then
+ exit 0;
+ fi
+fi
+
# be sure there is a /var/run/lighttpd, even with tmpfs
mkdir -p /var/run/lighttpd > /dev/null 2> /dev/null
chown www-data:www-data /var/run/lighttpd
Index: debian/README.Debian
===================================================================
--- debian/README.Debian (revisão 0)
+++ debian/README.Debian (revisão 0)
@@ -0,0 +1,14 @@
+Disabling lighttpd
+==================
+
+By default, when installed lighttpd is enabled in Debian systems. This means
+that it will probably conflict with other running webservers, unless you
+manually configure them to use different ports.
+
+You may want to disable lighttpd by default, maybe because you want to run it
+manually as a test webserver for CGI programs. To do that, you have to create
+the file /etc/default/lighttpd with the following line:
+
+DISABLE_LIGHTTPD=Y
+
+ -- Antonio Terceiro <[EMAIL PROTECTED]> Sat, 19 Jul 2008 18:26:31 -0300
--- End Message ---
--- Begin Message ---
Chris Lamb escreveu isso aí:
> Antonio Terceiro wrote:
>
> > Please consider applying the attached patch. It makes possible to
> > disable lighttpd by creating /etc/default/lighttpd with a line like
> > this:
> >
> > DISABLE_LIGHTTPD=Y
>
> Oh, please don't.. What's wrong with:
>
> # update-rc.d lighttpd remove
> and
> # update-rc.d lighttpd defaults
>
> ?
> If it does have any advantage, it would have to outweigh the disadvantage of
> the above commands not always doing the right thing anymore.
The problem is that whenever lighttpd is upgraded the symlinks are added
again, but I went RTFM update-rc.d and I give up solving my problem the
wrong way.
Thanks,
--
Antonio Terceiro <[EMAIL PROTECTED]>
http://people.softwarelivre.org/~terceiro/
GnuPG ID: 0F9CB28F
--- End Message ---