Bug#679854: [lighttpd] Please assume /var/log/ can be volatile

2012-07-02 Thread Stefan Bühler

Hi!

On 07/02/2012 07:20 AM, Roman Mamedov wrote:

Package: lighttpd
Version: 1.4.31-1
Severity: wishlist

Hello,

On various embedded systems running from a flash disk with limited number of
overwrite cycles it might be desirabe to mount /var/log as tmpfs, especially
if long-term storage of logs is not required (but logs are still useful for
immediate debugging).

Currently lighttpd properly assumes that /var/run can be volatile and does
this in /etc/init.d/lighttpd:


Same as with /var/run/lighttpd, i think it is stupid if every init 
script tries to solve this itself.

(See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636339)

With /var/log/lighttpd this probably isn't a big problem, as only 
lighttpd is using it if it is a tmpfs directory, but for 
/var/run/lighttpd other processes (externally spawned fastcgi) will need 
the directory too, and the init script is the wrong place creating it.




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#679854: [lighttpd] Please assume /var/log/ can be volatile

2012-07-01 Thread Roman Mamedov
Package: lighttpd
Version: 1.4.31-1
Severity: wishlist

Hello,

On various embedded systems running from a flash disk with limited number of
overwrite cycles it might be desirabe to mount /var/log as tmpfs, especially
if long-term storage of logs is not required (but logs are still useful for
immediate debugging).

Currently lighttpd properly assumes that /var/run can be volatile and does
this in /etc/init.d/lighttpd:


if [ $1 != status ]; then
# be sure there is a /var/run/lighttpd, even with tmpfs
# The directory is defined as volatile and may thus be non-existing
# after a boot (DPM §9.3.2)
if ! dpkg-statoverride --list /var/run/lighttpd /dev/null 21; then
install -d -o www-data -g www-data -m 0750 /var/run/lighttpd
fi
fi


I propose that /var/log/lighttpd would be also checked and recreated in a 
similar manner.

Thanks


--- System information. ---
Architecture: amd64
Kernel:   Linux 3.4.3-rm1+

Debian Release: wheezy/sid
  990 testing wheezy.natsu.romanrm.ru 
  500 unstablewww.emdebian.org 
  500 stable  linux-libre.fsfla.org 

--- Package information. ---
Depends  (Version) | Installed
==-+-
libattr1   (= 1:2.4.46-7) | 1:2.4.46-8
libbz2-1.0 | 1.0.6-3
libc6 (= 2.4) | 2.13-33
libfam0| 
libldap-2.4-2   (= 2.4.7) | 2.4.28-1.1
libpcre3 (= 8.10) | 1:8.30-5
libssl1.0.0 (= 1.0.0) | 1.0.1c-3
zlib1g(= 1:1.1.4) | 1:1.2.7.dfsg-13
perl   | 5.14.2-12
lsb-base  (= 3.2-14)  | 4.1+Debian7
 OR systemd  (= 29.1) | 
mime-support   | 3.52-1
libterm-readline-perl-perl | 1.0303-1


Recommends  (Version) | Installed
=-+-===
spawn-fcgi| 


Suggests   (Version) | Installed
-+-===
openssl  | 1.0.1c-3
rrdtool  | 
apache2-utils| 

-- 
With respect,
Roman

~~~
Stallman had a printer,
with code he could not see.
So he began to tinker,
and set the software free.


signature.asc
Description: PGP signature