LinuxQuestions.org
Review your favorite Linux distribution.
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 03-18-2008, 02:57 PM   #1
madivad
Member
 
Registered: Jan 2007
Posts: 70

Rep: Reputation: 15
Starting services


2 short and simple questions:

I have got Samba up and running. So far, so good. I am running some tests over the network and all should be good.

To enable samba, I used
Code:
# svcadm enable samba
(my how easy was that?) <G>

1) Is that equivalent to a once only manual start, or should I do more to make it persistent?

Not sure if I have to create an entry in /etc/rcX.d or not.

2) And on that note, what runlevel does OpenSolaris use?
Code:
# who -r
returns garbage
Code:
         run-level    Mar 18 23:23                   last=
To me that doesn't seem to make sense at all. I would have thought it was runlevel 3, but rc3.d is empty and there are some scripts in rc2.d
 
Old 03-18-2008, 04:47 PM   #2
coolster
Member
 
Registered: Nov 2007
Distribution: Solaris 10, Solaris Nevada
Posts: 112

Rep: Reputation: 15
Quote:
Originally Posted by madivad View Post
2 short and simple questions:

I have got Samba up and running. So far, so good. I am running some tests over the network and all should be good.

To enable samba, I used
Code:
# svcadm enable samba
(my how easy was that?) <G>
Sweet, isn't it?
:-)

Quote:
Originally Posted by madivad View Post
1) Is that equivalent to a once only manual start, or should I do more to make it persistent?
Unless the "-t" option is used, svcadm(1M) enable/disable is persistent through reboots, patches, and upgrades. The "-t" option indicates that this specified state is good only until the next reboot.(from the manual at http://opensolaris.org/os/community/smf/faq/)

Quote:
Originally Posted by madivad View Post
Not sure if I have to create an entry in /etc/rcX.d or not.
You don't have to.

Quote:
Originally Posted by madivad View Post
2) And on that note, what runlevel does OpenSolaris use?
Code:
# who -r
returns garbage
Code:
         run-level    Mar 18 23:23                   last=
To me that doesn't seem to make sense at all. I would have thought it was runlevel 3, but rc3.d is empty and there are some scripts in rc2.d
rc scripts are no longer the preferred method used to manage programs, Sun has enhanced the runlevel model with service milestones.
The use of runlevels has been replaced by SMF milestones, though you can still use the old /etc/init.d to run legacy scripts.
The single-user, multi-user, and multi-user-server milestones correspond to run-levels S, 2, and 3, respectively.

-C-
 
Old 03-18-2008, 05:59 PM   #3
prad77
Member
 
Registered: Mar 2008
Posts: 101

Rep: Reputation: 15
If the file for samba is present in /lib/svc/method , then samba startup is taken care while booting iself.
What ever /etc/init.d was doing is taken care well by SMF from sol10 onwards.Ocourse legacies excluded.

Refer the following for more understanding.
http://wellrounded.wordpress.com/200...ment-facility/

Fedora Development

Last edited by prad77; 04-17-2008 at 04:14 AM.
 
Old 03-18-2008, 08:27 PM   #4
madivad
Member
 
Registered: Jan 2007
Posts: 70

Original Poster
Rep: Reputation: 15
Great, and thanks for the links guys
 
  


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
Starting services tstuart Linux - Newbie 5 09-07-2006 09:05 AM
Starting different services at boot mjjzf Slackware 2 05-21-2005 02:46 PM
Starting services at bootup Lucasite Linux - Newbie 5 04-17-2004 03:08 PM
Starting Services InEeDhElPlInUx Linux - Newbie 9 11-06-2003 12:57 PM
stopping and starting services nero64 Linux - Newbie 3 11-13-2002 02:10 AM


All times are GMT -5. The time now is 07:07 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration