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

For maintenance purpose the system will be down and up as per weekly or monthly in production mode ,what are the needed points to mind ,what are that?

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


The NIC is failed in Cluster configuration. what is state of service group.whether NIC resource probed,if so how many times probed?

1 Answers   Thomson Reuters,


how to add patched to the kernel

3 Answers   IBM,


how u can perform security to users?

1 Answers   IBM,


what is file system ?can u explain briefly ?

2 Answers  


What is a Split brain scenario ?

2 Answers  


what r the files need to edit for DNS configuration..?

2 Answers   Accel,


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

2 Answers   Siemens,


if u have given to install Solaris on Intel machine with more fast (70% to 80% compare to SPARC) then how can u install

1 Answers   Cap Gemini, IBM,


Does "AMD Turion 64 X2 Processor TL50, 1.6 GHz and above" supports Solaris 10?.

1 Answers  


After installing kernal patch if system crashed,then how to recover?

2 Answers   HP,


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)