how to add a run control script..?



how to add a run control script..?..

Answer / c. anthony francis

The following procedure describes how to add a run control
script:
1.. Create the script in the /etc/init.d directory.
#Vi /etc/init.d/<filename>
#chmod 744 /etc/init.d/<filename>
#chgrp sys /etc/init.d/<filename>
2. Create links to the appropriate /etc/init.d directory.
# cd /etc/init.d
# ln filename /etc/rc#.d/S##filename
# ln filename /etc/rc#.d/K##filename
For instance, you might link a file in /etc/init.d called
database to a file called /etc/rc3.d/S99database, with a
corresponding stop script called /etc/rc3.d/K99database.
3. Use the ls command to verify that the script has links
in the appropriate directories.
# ls -li /etc/init.d/filename
# ls -li /etc/rc#.d/S##filename
# ls -li /etc/rc#.d/K##filename
4. Test the filename by performing the following commands:
# /etc/init.d/filename start

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Solaris AllOther Interview Questions

Compare and contrast VCS and Sun Cluster.

1 Answers  


how to add a disk group in veritas from one system to another system?

2 Answers   TCS,


how to share a directory with nfs server and how client mount the nfs share

3 Answers   IBM, Wipro,


what is a milestone and, how can we change the default milestone?

2 Answers   nvidia,


In remote support environment not able to ping one solaris server .What are the necessary steps you will do ?

2 Answers   Siemens,


how to use Multipathing in Solaris

2 Answers   IBM,


What does the pkgadd command do?

4 Answers  


What is the use of Sam utility in solaris

0 Answers   Accel,


What is OBP and how u r going to access it?

3 Answers  


what is the use of TCP wrappers

3 Answers   IBM,


what r d crontab fields?

3 Answers   emc2, JK Technosoft,


I AM MR SAGAR HAVING SUN SOLARIS 10, I AM NOT ABLE TO BROWSE THE INTERNET... I AM NOT HAVING NETWORK DRIVER WHICH SUPPORT SUN SOLARIS 10. I AM HAVING RTL 8111B GB LAN .BUT I AM HAVING RT8111B GB LAN DRIVERS WHICH SUPPORT XP,VISTA,UNIX,LINUX ...BUT IT NOT SUPPORTING FOR SUN SOLARIS 10 ...PLEASE GIVE A DETAILS FOR HAVING DRIVER AND HOW TO ACTIVATE THE NETWORK TO BROWSE THE INTERNET THROUGH SUN SOLARIS 10 THROUGH MOZILLA FIRE FOX ....MY E_MAIL ADDRESS IS \r\nsagar_nithin@yahoo.com

1 Answers  


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)