Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 can you unencapsulate a boot disk in VxVM?

5 Answers  


what is difference between tar and cpio

1 Answers   IBM,


How do you give a user access to an application or program that needs to run as root without giving them the root password?

3 Answers  


How can u configure two DHCP and Two DNS servers r there and u have 100's of users then 1st system takes which DHCP server and which DNS sever

1 Answers   IBM,


what is daemon? NFS & NIs – Daemons?

4 Answers   IBM,


How to repalce a failed disk?

3 Answers   Satyam,


what r the files that the SVM perfumes

3 Answers   IBM,


what are soft links and hard links, and differentiate them.

2 Answers   Bank Of America,


what r the packages for intel machine when u install

1 Answers   IBM,


how to check packets transmission statistcs b/w servers..?

3 Answers  


explain Jumpstat configuration..?

2 Answers   Accenture,


how many servers are maintaining and what is your 'user base' in the organization?------friends please tell me in what way the answer should be?

1 Answers   emc2,


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)