Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188543 - Init scripts should should recreate logfile directory
Summary: Init scripts should should recreate logfile directory
Status: RESOLVED DUPLICATE of bug 177736
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-12 08:55 UTC by takken
Modified: 2007-08-12 08:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description takken 2007-08-12 08:55:54 UTC
In order to reduce energy consumption and noise to the minimum, I mounted /var/log on a tmpfs. As a result, /var/log is empty when the machine is booted. Some services fail to start or misbehave because of this. Adding some code to local.start to recreate some directories on boot fixes the problem.

It might be a good idea to have a feature in Gentoo to store/restore /var/log on shutdown/boot, or have a policy on init scripts to create the required directories in /var/log every time the service is started.  

Reproducible: Always

Steps to Reproduce:
1. Add a mount for tmpfs on /var/log in /etc/fstab 
2. Reboot
3. Note services breaking

Actual Results:  
Services fail to start or misbehave. On my machine, apache2, qmail, privoxy and tor were affected.
 


Expected Results:  
All services should start normally.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-08-12 08:58:32 UTC
Nope; /var/log is not supposed to be volatile and wiped on reboots; ditto for /var/run (Bug 177736 and others). That's why ebuilds keepdir the directories.


*** This bug has been marked as a duplicate of bug 177736 ***