LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-06-2013, 05:24 PM   #1
aditya619
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Rep: Reputation: 0
how to serialize runlevel scripts


Hi There,

Please help me on how to serialize runlevel scripts in linux
 
Old 05-06-2013, 05:51 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,603

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
On what distribution?

Normally, the runlevel scripts are identified by <k>nn<name>, where <k> is either S (meaning start on entry to run level), or K - (stop on runlevel exit). The "nn" is a two digit number specifying the order. The scripts are run based on an alphabetical order, hence the "nn" determines the order of the scripts; if two scripts have the same number, then it is determined by the <name> order.

Some distributions don't use run levels anymore (Fedora, SUSE, and derivatives. There may be others).
 
Old 05-14-2013, 05:24 AM   #3
aditya619
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Original Poster
Rep: Reputation: 0
on Linux RHEL 5
 
Old 05-14-2013, 05:30 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,603

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Then look in /etc/init.d, you will see how the header on each script provides formation used by chkconfig to set the appropriate links in /etc/rc.d/rc<level>.d

You also have the option to manually set the links.
 
  


Reply


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
Runlevel scripts and creating links Nickjpost Linux - Newbie 5 12-16-2010 11:24 PM
Which set of runlevel scripts does slackware use at boot? okos Slackware 14 05-03-2008 09:20 PM
runlevel shell scripts sebastian.raghe Debian 4 04-15-2005 03:26 PM
Runlevel start/stop scripts vanalex Linux - General 0 01-27-2004 09:54 PM
Slack; Where are the runlevel scripts? GAVollink Slackware 4 11-10-2003 10:21 AM


All times are GMT -5. The time now is 08:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration