Bug 600804

Summary: nscd startup fails if /var/run in tmpfs
Product: [openSUSE] openSUSE 11.2 Reporter: Andreas Lederle <andreas.lederle>
Component: BasesystemAssignee: Petr Baudis <pbaudis>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: openSUSE 11.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: patch for proposed solution

Description Andreas Lederle 2010-04-29 08:38:29 UTC
Created attachment 357671 [details]
patch for proposed solution

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.9) Gecko/20100317 SUSE/3.5.9-0.1.1 Firefox/3.5.9

If /var/run is located in tmpfs the nscd init script fails with:

Starting Name Service Cache Daemonbind(/var/run/nscd/socket): No such file or directory
startproc:  exit status of parent of /usr/sbin/nscd: 1

Possible Solution:

On start check if /var/run/nscd exists if not create it.
See attached patch.

Reproducible: Always

Steps to Reproduce:
1. rcnscd stop 
2. rm -r /var/run/ncsd
3. rcnscd start
Actual Results:  
Start of nscd fails with message:
Starting Name Service Cache Daemonbind(/var/run/nscd/socket): No such file or directory
startproc:  exit status of parent of /usr/sbin/nscd: 1

Expected Results:  
Start of nscd shall succeed
Comment 1 Petr Baudis 2010-05-11 12:02:26 UTC
aj has already checked in a fix to factory