LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-20-2012, 07:18 PM   #1
rawrFox
LQ Newbie
 
Registered: May 2011
Location: Knapford, Sodor
Distribution: Slackware, FreeBSD
Posts: 13

Rep: Reputation: 10
Udev started twice at start-up?!?


It is my understanding of the rc scripts (which in my opinion are awesome due to their amazing flexibility) that rc.S is called at every start-up, and rc.M is called when going multiuser. I setup my box to boot straight to X, so I guess rc.S is called then rc.M after that.

Recently (it might have been an update that did it, I'm not sure though - I use current btw), I've been able to chase down the cause of an annoying halt while going multiuser, specifically when starting the udev daemon. My guess is that because rc.S has already started it, it hangs around for a minute or so, then gives up, blurts out an error message stating udev is already running (which I only got after some fiddling with rc.udev) and boot carries on as normal.

My question is, simply, should this have happened? In rc.udev there is a section which deals with being called when udev is already running, but obviously it did't work. I have commented out the section starting up udev in rc.M and all seems fine now. Why the duplication between the files?

Or (as I am a noob) am I just getting completely the wrong end of the stick here? I've learnt a lot by working this through though. (i think :s)
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-20-2012, 11:54 PM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
It's not the same command. When udev is first run it process cold-plug events -for things which were already plugged in at boot-time. When it runs later, it is so that it can process new kernel events. Both are necessary -look closely at the detail of the two commands.
 
2 members found this post helpful.
Old 02-21-2012, 04:17 PM   #3
rawrFox
LQ Newbie
 
Registered: May 2011
Location: Knapford, Sodor
Distribution: Slackware, FreeBSD
Posts: 13

Original Poster
Rep: Reputation: 10
Thanks for the reply gnashley.

I booted with the second udev call commented out but the pause still occurred, so I looked through the output of dmesg and it seems there are some read errors on my hard disk, and the kernel was doing something with the disk just as udev was being restarted.

My own fault here for reading the signals wrong I guess.

I have thus reinstated the multiuser udev call and apologised to it

Last edited by rawrFox; 02-21-2012 at 04:18 PM.
 
Old 02-21-2012, 11:42 PM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
"and apologised to it": LOL
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to auto-start the processes one after another is started? thomas2004ch Linux - Software 4 08-05-2011 10:05 AM
How to have udev start at boot RVDowning Mandriva 9 06-09-2010 01:51 PM
script command works unless started by udev kscott121 Linux - Software 2 12-31-2007 10:38 PM
can't get a daemon to start - says it's already started Avatar Linux - Software 7 12-19-2006 12:02 PM
make sure you started X before you start Fluxbox?! FiveFlat Debian 3 05-23-2005 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration