![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
|
|
||||
| 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 |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
|||
|
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. |
|||
| Google UNIX.COM |