The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
calling a script from a level above where the script resides SummitElse UNIX for Advanced & Expert Users 2 10-26-2007 06:27 AM
Start up in Solaris anar_s2001 SUN Solaris 1 06-14-2006 07:16 AM
Solaris 8,9 Current OS Level Patches DarReNz SUN Solaris 2 02-26-2006 11:21 PM
Script that modifies root level files turbo90awd Shell Programming and Scripting 10 06-19-2003 08:20 AM
Find run-level in solaris 8. nianzhe Filesystems, Disks and Memory 2 08-08-2002 10:30 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-03-2007
Registered User
 

Join Date: Aug 2007
Posts: 23
how do I start a script in run level 3 in solaris?

Hi,

how do I start a script in run level 3 in solaris?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-03-2007
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,495
Ideally you would put the script in /etc/init.d and you would then create a link to it in /etc/rc3.d with a name beginning with S01 to S99 to tell it where in the startup sequence you want it to start.

The documentation in on http://docs.sun.com
Reply With Quote
  #3 (permalink)  
Old 12-04-2007
Registered User
 

Join Date: Dec 2007
Location: Paris
Posts: 278
By the way, run levels and rc*.d scripts are still supported but obsoleted by milestones and SMF in Solaris 10 and newer.

You should create a service manifest instead of the old System V method.

Sun Microsystems - BigAdmin: Solaris Service Management Facility - Service Developer Introduction
Reply With Quote
  #4 (permalink)  
Old 12-04-2007
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,495
Since Solaris 10 was not entioned and run level 3 was I had made the assumption that this was not Salaris 10, if I was incorrect in this assumption I would also advise using SMF and starting your sevice at milestone multi-user-server or milestone all.
Reply With Quote
  #5 (permalink)  
Old 12-04-2007
Registered User
 

Join Date: Dec 2007
Location: Paris
Posts: 278
Indeed. I should have written:

If you are using Solaris 10 or newer, you should create a service manifest ...
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0