LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 02-06-2008, 01:00 PM   #1
LinuxLover
Member
 
Registered: Feb 2004
Distribution: Centos 7 x86_64 , Rocky Linux 8 (aarch64)
Posts: 196

Rep: Reputation: 32
solaris 9 runlevels problem


Hi,

I am using Solaris9 on x86.

I am getting confused about runlevels behaviour in this.

Under Linux we have differenet runlevel directorires like

/etc/rc2.d/
/etc/rc3.d/
/etc/rc4.d/
/etc/rc5.d/

And when system booted in specific runlevel e.g runlevel 3. only

/etc/rc3.d/ directory scprits affect. It has no concern with other runlevel directories.



But here in solaris my system is in runlevel 3. as showing by command

[/]# who -r
. run-level 3 Feb 6 23:42 3 0 S


Under /etc/rc3.d/ directory have very few scripts.


And services script in /etc/rc2.d/ are also affecting the system although system in in runlevel 3 not in 2?

Why /etc/rc2.d/ script are affecting the sytem on booting ,whereas system is in runlevel 3 not in 2.
 
Old 02-06-2008, 02:08 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
What is run when the O/S enter to a new runlevel is defined in the /etc/inittab file.

Solaris 9 and older, like traditional System V Unix are first switching to runlevel 2 (multi-user) before switching to runlevel 3 (multi-user with file sharing), the reason why you see /etc/rc2.d scripts being run.

Note that the whole run level/rc*.d thing now mostly obsolete with the new Solaris 10 and newer service management facility.
 
  


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
What is runlevels? jojojo Linux - Newbie 2 06-06-2006 02:42 PM
SimplyMEPIS 3.3 problem: can't change runlevels. P0ldy Linux - Newbie 5 04-07-2005 08:27 PM
VMWare Tools Installation problem on Gentoo: Runlevels Wolfbeast Linux - Software 1 07-21-2004 03:17 AM
RunLevels bcom Mandriva 3 05-31-2004 07:07 PM
runlevels? Computergirl24 Linux - Software 4 12-26-2003 04:45 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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