Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

runlevels

Status
Not open for further replies.

nychris

MIS
Dec 4, 2004
103
US
Is there a utility on Solaris that is similar to Linux's chkconfig that allows you to easily add and remove scripts to and from different runlevels? Its very cumbersome having to create and remove symlinks to edit the startup scripts. Also, what makes it even worse is that in Solaris, when you boot to runlevel 3, it runs all the scripts in the previous runlevel directories first (ie, /etc/rc2.d/), unlike in Linux where everything is all in one directory (/etc/rc3.d/) which makes things much easier.

TIA
 
The easiest way to do this is to rename the script you do not want to start... Example: mv /etc/rc2.d/S90wbem /etc/rc2.d/s90wbem
 
I know, thats what I've been doing. I can't believe that Sun never developed a tool that does this for you.
 
They have developed a tool like this with Solaris 10, I believe it is called SMF or something like that. I have not messed with it to much though...
 
do you really need a GUI to change the sequence of Scripts executed during bootup? 8-(

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
I agree with you on that daFranze, I am not looking forward to some of the "new" features of Solaris 10 when we upgrade. I use Linux also and it has become somewhat annoying drilling through all the different GUI menus they have now. But I guess the majority of people want that and that is what they need to tailor it to.
 
dafranze, since when is the chkconfig utility a GUI?

coffeysm, who says you have to use the all the annoying Linux GUIs? We run hundreds of Linux servers here and I don't use a single GUI utility for anything.

I don't know about you guys, but if I want to disable Sendmail, for example, I prefer the Linux way....
Code:
linux:~ # chkconfig sendmail off
linux:~ # chkconfig --list | grep sendmail
sendmail                   0:off   1:off   2:off   3:off   4:off   5:off   6:off
...over the Solaris way...
Code:
solaris# find /etc/ -name "S*sendmail"
/etc/rc2.d/S88sendmail
solaris# cd /etc/rc2.d/
solaris# mv S88sendmail s88sendmail




--
Chris
RHCE, SCSA, AIX5L, LPIC, CNE, CCNA, MCSE
 
the other Solaris way: ;-)

disable sendmail: pkgrm SUNWsndmr
remove sendmail completely from your host: pkgrm SUNWsndmu

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
btw: in Solaris 10 there are a lot of changes, since there is a monitoring of services. The manager's CLI is very similar to chkconfig...

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
Disabling a service and uninstalling its package are two competely different things. We can uninstall packges in Linux too....'rpm -e sendmail'. While we're on the subject, this is easier in Linux too since you never know what Sun is going to call a package.




--
Chris
RHCE, SCSA, AIX5L, LPIC, CNE, CCNA, MCSE
 
btw: in Solaris 10 there are a lot of changes, since there is a monitoring of services. The manager's CLI is very similar to chkconfig...
Thanks, I'll have to check this out. I haven't played with Solaris 10 much at all.

--
Chris
RHCE, SCSA, AIX5L, LPIC, CNE, CCNA, MCSE
 
I just looked into smf and they do have a new utility in Solaris 10 that has a similar effect as chkconfig, except not nearly as good. The commands are svcs and svcadm.



 
Status
Not open for further replies.

Similar threads

Replies
1
Views
46

Part and Inventory Search

Sponsor

Back
Top