LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 10-27-2003, 10:42 AM   #1
g_goblin
Member
 
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)

TIA
 
Old 10-29-2003, 03:53 PM   #2
stickman
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).
 
  


Reply


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


All times are GMT -5. The time now is 10:16 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration