how do I start a script in run level 3 in solaris?


 
Thread Tools Search this Thread
Operating Systems Solaris how do I start a script in run level 3 in solaris?
# 1  
Old 12-03-2007
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?
# 2  
Old 12-03-2007
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
# 3  
Old 12-04-2007
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
# 4  
Old 12-04-2007
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.
# 5  
Old 12-04-2007
Indeed. I should have written:

If you are using Solaris 10 or newer, you should create a service manifest ...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Iso - remaster script trying to start chroot run commands then exit but host system gets messed up

The script works and creates a modified iso fine until I added the chrootbeg and chrootend functions and executed them. I'm sorry if I did something wrong this is my first post. I uploaded entire bash script for reference or in case you want to run it to debug it is called isoremast.txt. ... (5 Replies)
Discussion started by: paulhoffusa
5 Replies

2. Red Hat

Script to run at start and shutdown

Hello, I have script that start and shutdown the application. where should i place my script so that it can execute at my OS shutdown ? Pls help me... (2 Replies)
Discussion started by: saurabh84g
2 Replies

3. Shell Programming and Scripting

how to run an already made script run against a list of ip addresses solaris 8 question

how to run an already developed script run against a list of ip addresses solaris 8 question. the script goes away and check traffic information, for example check_GE-VLANStats-P3 1.1.1.1 and returns the results ok. how do I run this against an ip list? i.e a list of 30 ip addresses (26 Replies)
Discussion started by: llcooljatt
26 Replies

4. Solaris

Solaris 10 - Run Level Modification

Hello, I'm creating a VM Image of Solaris 10 on VM Player. I've completed the installation & I am using the Java Desktop as my default logon. I need to modify the Run Level to Console Mode (permanently). Unlike previous versions or Linux, modifying inittab file is not an option here. Please... (2 Replies)
Discussion started by: DevendraG
2 Replies

5. UNIX for Dummies Questions & Answers

When the run level is changed from 5 to 3?

A Bourne Shell script is placed in /etc/rc.d/rc3.d called S57apache. What will happen with this script when the run level is changed from 5 to 3? many thanks (4 Replies)
Discussion started by: lemon_06
4 Replies

6. Solaris

Difference between run level & init level

what are the major Difference Between run level & init level (2 Replies)
Discussion started by: rajaramrnb
2 Replies

7. Solaris

How to get the initdefault run level in Solaris 10

Hi All, In Solaris 9 and below I will get the init run-level by checking the /etc/inittab entry is:3:initdefault: But in Solaris 10 we are using the smf functionality. Here how I can get the init default run level. Please help me in this problem. Regards, ... (2 Replies)
Discussion started by: kalpeer
2 Replies

8. Solaris

Run Level 1, S and small s

Hi Experts, A stupid question for experts :confused: !! What is the difference between run level ‘1', runlevel ‘S' and small ‘s'. As per my understanding the difference between S and 1 is that in case of ‘S' it only going to mount the critical file system which ideal should be... (2 Replies)
Discussion started by: kumarmani
2 Replies

9. UNIX for Dummies Questions & Answers

Run the start script from the terminal? Newbie Time!

Hi, How do I "run a script"? I'm trying to start up some software called ElectroServer 3, and was told I just needed to "run the start script from the terminal to get things going". From the terminal, i use cd command to change to the software's directory, and I guess the script in question is... (4 Replies)
Discussion started by: waking_bear
4 Replies

10. Filesystems, Disks and Memory

Find run-level in solaris 8.

When the solaris 8 have come up, which command can find out the current run-level? thanks. (2 Replies)
Discussion started by: nianzhe
2 Replies
Login or Register to Ask a Question