LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Service Shutdown and Init Setup (http://www.linuxquestions.org/questions/solaris-opensolaris-20/service-shutdown-and-init-setup-109078/)

g_goblin 10-27-2003 11:42 AM

Service Shutdown and Init Setup
 
I have a Sun box with the following objectives

1. Development (C++ apps)... mostly socket based.
2. Remote access(SSH)
3. Some web stuff

Does Sun RPC need to be running for any of my requirements?

Normally on my Linux boxes, I just have SSH and Apache Running.

What is the command I need to run in order to shutdown services in Solaris

Example on Linux:
service sendmail stop

And if I don't want it to run at start

sysconfig --level 0123456 sendmail off

Solaris 9(5.9)

TIA

stickman 10-29-2003 04:53 PM

All of the startup/shutdown typically reside in /etc/init.d and are symlinked to the appropriate level where they are started/stopped. To start sendmail, you would use:
/etc/init.d/sendmail start

To prevent a service from being started, find the run level where is get started and remove or rename the script so that is does not start with capital S. For example, to disable sendmail startup:
cd /etc/rc3.d
mv S88sendmail nostart_S88sendmail

Most applications in Solaris are started/stopped at only one run level because Solaris progresses though the intermediate run levels when it changes run level. For example, when a system boots, the system runs each S## script in /etc/rc1.d, then each S## script in /etc/rc2.d, then each S## in /etc/rc3.d. When it shuts down, it will run the K## scripts at each run level (3,2,1,0).


All times are GMT -5. The time now is 10:20 PM.