Fedora Linux Support Community & Resources Center
  #1  
Old 3rd April 2009, 01:11 PM
tekknokrat Offline
Registered User
 
Join Date: Mar 2009
Location: Magdeburg, Sachsen-Anhalt
Posts: 23
use of chkconfig

I am trying to move the priority of the wpa_supplicant init.d script.

The script is modified to the new priorities and header looks like this:

/etc/init.d/wpa_supplicant:
Code:
#!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 09 91
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO
I tried several commands to get the symlinks updated to fit the new entry:

Code:
chkconfig --level 2345 wpa_supplicant off 
chkconfig --level 2345 wpa_supplicant on
Code:
chkconfig --level 2345 wpa_supplicant reset
Code:
chkconfig --level 2345 wpa_supplicant resetpriorities
But none of the changes the symlink:
Code:
ls /etc/rc*.d/|grep wpa
K84wpa_supplicant
K84wpa_supplicant
S23wpa_supplicant
S23wpa_supplicant
S23wpa_supplicant
S23wpa_supplicant
K84wpa_supplicant
Any suggestions?
Reply With Quote
  #2  
Old 3rd April 2009, 04:10 PM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
Most probably --del and --add will do the trick
Reply With Quote
  #3  
Old 3rd April 2009, 04:25 PM
tekknokrat Offline
Registered User
 
Join Date: Mar 2009
Location: Magdeburg, Sachsen-Anhalt
Posts: 23
Quote:
Originally Posted by giulix View Post
Most probably --del and --add will do the trick
nope, only forgot that in my list.

Quote:
~$ sudo chkconfig --del wpa_supplicant
~$ sudo chkconfig --add wpa_supplicant
~$ ls /etc/rc*.d/|grep wpa
K84wpa_supplicant
K84wpa_supplicant
S23wpa_supplicant
S23wpa_supplicant
S23wpa_supplicant
S23wpa_supplicant
K84wpa_supplicant
Reply With Quote
  #4  
Old 3rd April 2009, 04:49 PM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
Somehow the lines between
###### BEGIN INIT INFO
and
###### END INIT INFO
included seem to confuse chkconfig on my Centos 4 (no prob in deleting the links, though). See whether removing them improves the situation
Reply With Quote
  #5  
Old 3rd April 2009, 10:49 PM
tekknokrat Offline
Registered User
 
Join Date: Mar 2009
Location: Magdeburg, Sachsen-Anhalt
Posts: 23
Got it solved when removing the Required-Start/Required-Stop statements, thanks for pointing that out.
I wonder where it gets the default priority for --add service.
Reply With Quote
  #6  
Old 8th April 2009, 02:35 PM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
It seems to depend from dependencies in the init scripts. Check this and this (function frobOneDependencies) for insights.

Last edited by giulix; 8th April 2009 at 02:58 PM.
Reply With Quote
Reply

Tags
chkconfig

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help w/ Chkconfig/runlevels, etc. segphault Using Fedora 0 11th November 2008 06:47 PM
chkconfig ?? vonedaddy Using Fedora 11 8th November 2007 09:31 AM
chkconfig help perlsyntax Using Fedora 4 14th October 2007 06:33 AM
chkconfig help whoa Using Fedora 15 29th December 2006 07:31 PM
chkconfig Wiles Using Fedora 4 9th August 2006 05:17 PM


Current GMT-time: 17:45 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat