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

how u can push the user details in NIS

2 Answers   IBM,


how can u schedule for snapshot

1 Answers   HCL,


what r diff types of back ups?

4 Answers   Locuz,


If a user logs in to UNIX, it displays the desktop and then immediately logs you back out, what could be wrong?

2 Answers  


how to change nic card from half duplex to full duplex?

1 Answers   Wipro,


how to check network statstics..?

5 Answers  


what are the deamon for nfs server

5 Answers   IBM, Micron Electricals,


please give detail procedure how do replace failed disk under control of SVM and VxVm

3 Answers   TCS,


What does fmthard do?

9 Answers   Accel,


What does init 0 do?

9 Answers   HCL,


how to create 30 gb of volume using raid 0 concatination on three different disk

6 Answers   IBM,


You can ping servers on the subnet your workstation is on, but not other subnets. Why?

2 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)