LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 12-18-2008, 06:53 PM   #1
TheFueley
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
Lightbulb Fedora9 chkconfig priority level woes


Hello all,
I recently had a hard time resetting my wpa_supplicant start priority. The problem is that by default, it has a start priority of 23 while networking has a start priority of 10. That makes no sense to me, but that is the default. I do not use NetworkManager and want my NFS mounts to be ready at boot up.

So by default, wpa_supplicant was starting before network and would hang forever trying to pull an ip with no luck. I could manually change the symlink from
Code:
/etc/rc5.d/S23wpa_supplicant
to
Code:
/etc/rc5.d/S09wpa_supplicant
but this would eventually revert back to its original setting. Now, google'ing around I found that you could change the wpa_supplicant script on the 2nd or 3rd line to whatever you'd like. So I changed it to match:
Code:
#chkconfig: 2345 09 84
Which means that it would start in run-levels 2, 3, 4, and 5 at priority 09 and kill at priority level 84. I did this and still no dice. Then I ran the command:
Code:
chkconfig wpa_supplicant resetpriorities
and
Code:
chkconfig --level 2345 wpa_supplicant resetpriorities
No dice. The symlinks would just continue to sit there staring at me with no change. I even tried setting up the override file with
Code:
/etc/chkconfig.d/wpa_supplicant
just like the man page sugggests. No dice. I was losing my mind. So, just for the sake of my sanity, I decided to run:
Code:
system-config-services
After the gui popped up and showed me what I already knew, that it was set to start at run-levels 2345. I closed it without changing anything.
Voila! It changed my symlinks! I don't know why or how it did it after running that, but it finally did it.

So to save anyone else out there a future headache, I post my experience hoping it helps someone else in the future.

My question is this though, will this survive an update to wpa_supplicant? Will a newer version of wpa_supplicant replace my default run-level priority? My guess is it will, but I will have to wait and see. Hope this helps someone.
 
Old 06-08-2009, 10:36 PM   #2
tartan sandal
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
I had a similar problem trying to change shorewall's priorities using chkconfig.d/
and have finally figured it out:-)

You probably need to remove some services from 'Required-Start' in the INIT INFO section as well. These seem to override whatever chkconfig is doing. To get wpa_supplicant to start before network you probably need to remove 'messagebus' which starts at 22 and is forcing wpa_supplicant to start at 23.

Hope this helps!

Last edited by tartan sandal; 06-08-2009 at 10:45 PM. Reason: typo
 
  


Reply

Tags
chkconfig, network, runlevel, wpasupplicant


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Why do I get "bash: chkconfig: command not found" when I try to run chkconfig? non-thrash Fedora 10 05-20-2010 01:31 PM
Nice level set but process gets wrong priority akring Linux - Kernel 3 11-03-2008 10:20 AM
Nice level set but process gets wrong priority akring Linux - General 7 10-29-2008 05:25 AM
process priority,nice -- small question regarding high/low priority values beeblequix Linux - Newbie 1 10-11-2006 11:22 AM
emacs in run level 3 then switch to X (level 7) then back to level 3 dsoliver Slackware 3 09-01-2006 04:31 AM


All times are GMT -5. The time now is 06:15 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration