- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /etc/rcx.d directory scripts
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 12:15 AM
06-09-2006 12:15 AM
I know that /etc/rcx.d is the runlevel directoy which is selected to the corresponding init level..?
My query is
the rc2.d directory conatins both start(s) & kill(k) scipts.
1.which scripts will run when i move from rc1 to rc2 ?
2.which scripts will run when i move from rc3 to rc2 ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 12:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 12:37 AM
06-09-2006 12:37 AM
Re: /etc/rcx.d directory scripts
K130samba -> /sbin/init.d/samba
K200tps.rc -> /sbin/init.d/tps.rc
when the system goes from a higher runlevel to runlevel 2, samba will be killed before tps, even though they may have been started in reverse order.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 12:40 AM
06-09-2006 12:40 AM
Re: /etc/rcx.d directory scripts
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 12:41 AM
06-09-2006 12:41 AM
Re: /etc/rcx.d directory scripts
Pete is correct but he should have mentioned the Capital S and K
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 12:47 AM
06-09-2006 12:47 AM
Re: /etc/rcx.d directory scripts
I knew this also but from the man rc seems that the script should be started in alphabetical order at the start and at the stop.
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 12:49 AM
06-09-2006 12:49 AM
Re: /etc/rcx.d directory scripts
When ordering start and kill script links, note that subsystems started in any given order should be stopped in the reverse order to eliminate any dependencies between subsystems. This means that kill scripts will generally not have the same numbers as their start script counterparts. For example, if two subsystems must be started in a given order due to dependencies (e.g., S111house followed by S222uses_house), the kill counterparts to these scripts must be numbered so that the subsystems are stopped in the opposite order in which they were started (e.g., K555uses_house followed by K777house).
So in my example, samba is killed before tps.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 01:01 AM
06-09-2006 01:01 AM
Re: /etc/rcx.d directory scripts
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 01:04 AM
06-09-2006 01:04 AM
Re: /etc/rcx.d directory scripts
You're right - samba would be killed first.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 01:05 AM
06-09-2006 01:05 AM
Re: /etc/rcx.d directory scripts
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2006 05:36 PM
06-11-2006 05:36 PM
Re: /etc/rcx.d directory scripts
I got confused with your Replies..
Lets Clear me this.
FROM RC1 TO RC2
content of /etc/rc2.d runs as
s1-->s2--->s3--->..upto s100
FROM RC3 TO RC2
contents of /etc/rc3.d runs as
k100-->k99-->k98-->...k1
Is this Correct update me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2006 05:42 PM
06-11-2006 05:42 PM
Re: /etc/rcx.d directory scripts
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2006 06:09 PM
06-11-2006 06:09 PM
Re: /etc/rcx.d directory scripts
Hopefully I don't muddy the waters further.
As a machine starts up, it goes from
Run Level 0
to 1
to 2
to 3
# Or higher if set in /etc/inittab
As it goes from run level to run level going up, all scripts starting with a captial S are executed in ascii alphabeticall order.
S100startthis
S102startthat
As a machine is shutting down, or goes from runlevel 3 to 2 then 1 then zero, the K(kill) scripts are executed. Only capital K.
K900stopthips
K810oracle
If you check these files, you see they are actually soft links to start/shut scripts in /sbin/init.d
Example:
Lets say the machine is at run level 2
The following soft links are in /etc/rc3.d
S800oracle
S810httpd
We run init 3 to take the system to run level 3
The soft links are run as follows:
S800oracle
S810httpd
Note that this causes execution of the start/stop script in /sbin/init.d
Lets say S800oracle points to /sbin/init.d/oracle
What actually happens is /sbin/init.d/oracle start
And so on.
More clear?
Hopefully.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2006 06:50 PM
06-11-2006 06:50 PM
Re: /etc/rcx.d directory scripts
Thanks to All for your Great Respone..
I am closing the thread since I got the solution with the last reply.