Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#23708 - [lighttpd] fails to start when /var/log/lighttpd/ does not exist

Attached to Project: Arch Linux
Opened by Simon Legner (simon04) - Monday, 11 April 2011, 18:34 GMT
Last edited by Pierre Schmitz (Pierre) - Friday, 29 April 2011, 18:42 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
lighttpd fails to start when /var/log/lighttpd/ does not exist (e.g. when /var/log/lighttpd/ is mounted as tmpfs due to an SSD).


Additional info:
* package version(s):
lighttpd 1.4.28-5
* config and/or log files etc:
tmpfs on /var/log type tmpfs (rw,noatime) in /etc/fstab


Steps to reproduce:

# /etc/rc.d/lighttpd stop

# rm -r /var/log/lighttpd/

# /etc/rc.d/lighttpd start
:: Checking configuration [DONE]
:: Starting lighttpd [DONE]
/etc/rc.d/lighttpd: line 59: /var/log/lighttpd/lighttpd-angel.log: No such file or directory

# mkdir /var/log/lighttpd/

# /etc/rc.d/lighttpd start
:: Checking configuration [DONE]
:: Starting lighttpd [DONE]
This task depends upon

Closed by  Pierre Schmitz (Pierre)
Friday, 29 April 2011, 18:42 GMT
Reason for closing:  Not a bug
Comment by Pierre Schmitz (Pierre) - Tuesday, 12 April 2011, 06:27 GMT
I don't really see a bug here. If you use /var/log on a tmp device it's your to make sure that you store its content on shutdown and restore on boot.
Comment by Simon Legner (simon04) - Tuesday, 12 April 2011, 06:33 GMT
The other software I use regularly is fine with the /var/log being purged after boot, especially cups which also uses a subdirectory /var/log/cups.
I would expect software to work without depending on existence of log-files.

Feel free to close the ticket though, if you don't see a reason to fix that.
Comment by Pierre Schmitz (Pierre) - Tuesday, 12 April 2011, 06:46 GMT
It does not need the log file but the directory to log into has to be present.
Comment by Simon Legner (simon04) - Tuesday, 12 April 2011, 12:03 GMT
Cups, nevertheless, does not depend on an existing directory /var/log/cups/
Comment by Pierre Schmitz (Pierre) - Friday, 29 April 2011, 18:41 GMT
1) /var/log is not meant to be a temporary storage. If you use it that way you have to deal with it yourself. (see my first comment)
2) You cannot except apps to keep working when removing dirs or files from the package.

Loading...