Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
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.


  Search this Thread
Old 10-27-2003, 11:42 AM   #1
Registered: Oct 2002
Location: Chitown
Distribution: RH 7.2/3
Posts: 48

Rep: Reputation: 15
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)

Old 10-29-2003, 04:53 PM   #2
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
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).


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
init.d service start Question casentm Fedora 2 03-20-2005 09:23 PM
service squid.init stop says [failed] Niceman2005 Linux - Software 2 11-16-2004 07:20 PM
Difference between init.d, xinetd and running service as a dameon jstephens84 Linux - Newbie 1 09-13-2004 07:19 PM
Init 0 does not shutdown the server on its own samble Linux - General 5 11-10-2003 02:38 PM
control reboot, init 6 ,shutdown paulmccs Linux - General 3 02-27-2002 03:50 PM > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 01:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration