Problem with lighttpd logs

Problems with packages? Post here, using [tags] of the package name.

Problem with lighttpd logs

Postby rjalex » Mon Oct 13, 2014 8:16 am

Dear friends,
I have an installation of Archlinux running on RPi via an SD card.
To reduce the writes to the SD I have mounted the /var filesystem on tmpfs.
For this reason when I try to start lighttpd as per the default install it will fail since it cannot find a /var/log/lighttpd directory writeable by the default http.http user.

What is the best solution for this ? I really would not like to move /var to the SD.

Thank you very much in advance.
rjalex
 
Posts: 21
Joined: Thu Oct 02, 2014 5:45 am

Re: Problem with lighttpd logs

Postby WarheadsSE » Mon Oct 13, 2014 2:03 pm

tmpfiles.d
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Problem with lighttpd logs

Postby rjalex » Mon Oct 13, 2014 4:24 pm

You Sir are a genius ! :-)

After some frantic googling I have written a /etc/tmpfiles.d/lighttpd.conf file with the following single line:

d /var/log/lighttpd 0755 http http - -

and with this lighttpd with the default configuration starts like a charm

I wonder if this little file should be included in the lighttpd package for people like me running /var/log on tmpfs

Take care and thanks a lot.
rjalex
 
Posts: 21
Joined: Thu Oct 02, 2014 5:45 am


Return to Packages

Who is online

Users browsing this forum: No registered users and 1 guest