Bug 112707

Summary: race between earlykdm and xdm init scripts
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Takashi Iwai <tiwai>
Component: BasesystemAssignee: Stephan Kulow <coolo>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: coolo, werner
Version: Beta 2   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Takashi Iwai 2005-08-24 13:41:39 UTC
earlykdm and xdm init scripts can be racy.

It might be harmless in practice, but better to use a lock file (e.g.
/var/lock/subsys/xdm) ?

As another optimization, we can extend startpar to skip the service which has
the certain lock in /var/lock/subsys...
Comment 1 Dr. Werner Fink 2005-08-24 13:47:19 UTC
Do you have ever seen such a race?
Comment 2 Takashi Iwai 2005-08-24 13:52:58 UTC
Yes, I saw yesterday the line "starting kdm" twice during boot.  No real problem
happend, though.

The booted services are fairly optimized by myself, so this should happen very
unlikely per default installation, I guess.
Comment 3 Dr. Werner Fink 2005-08-24 13:56:54 UTC
A simple solution would be to add earlykdm to
Should-Start line of the /etc/init.d/xdm.
Comment 4 Stephan Kulow 2005-08-24 14:51:43 UTC
It would still say "starting kdm" twice during boot. 
Comment 5 Stephan Kulow 2005-09-06 07:29:21 UTC
it's fixed good enough now