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
Syslog-ng does not start Solaris 9 takendal SUN Solaris 4 05-14-2008 11:02 PM
Using LOM port to start boot solaris 10 RottingBadger SUN Solaris 2 04-01-2008 04:23 AM
Database can't start automatically on solaris Sachin Vaidya SUN Solaris 2 02-27-2008 07:12 PM
how do I start a script in run level 3 in solaris? mokkan SUN Solaris 4 12-04-2007 08:44 AM
How to start CDE for non root user on Solaris 10 kiranherekar SUN Solaris 0 01-16-2006 01:00 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-14-2006
Registered User
 

Join Date: Jun 2006
Posts: 1
Start up in Solaris

Hello everyOne

My OS is Soraris 9. I can't find how I can execute script when OS start up. Namely, where is stored "Start up" such as in Window?

Best Regards Anar
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-14-2006
Registered User
 

Join Date: Feb 2006
Location: Schenectady, NY
Posts: 130
Presumably this is a script that you want executed in the standard OS run-level 3 (or multi-user mode). As part of the boot process, the /sbin/rc3 script is executed by init. This script scans the directory /etc/rc3.d/ for any script beginning with an uppercase 'S'. Those found are then called with a single "start" argument. For example:

/etc/rc3.d/S99script start

So, create a script in /etc/rc3.d with an appropriate name. The numbers following S are not required but are used for ordering execution. It is, however, just a simple ls command in rc3.

I've always used /etc/init.d/nfs.server as a template.


** DISCLAIMER ** This is an overly-simplified explanation.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:32 PM.


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