how to add a run control script..?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the zone in DNS?

1914


how can u give space garentee for volume in netapp storage

2825


hi to all,, i need few real time issues please provide me,, if you have any,,,

1764


How to create a gateway?

6384


How do u know that,what patch can be applicable on the system?

1825






In a two node cluster i have typed #hastart command in one node.The cluster is starting in second node also,what is going in background?

1764


What is cachefs?

1945


what is mean by netfmd in sun cluster what is the use of netfmd and what is the relation between ccd and netfmd?

2271


Local zone in shutting down state.how to bring state of zone to installed?

1635


What is the use of Sam utility in solaris

2379


when i am starting solaris10 with 'fail safe mode' on intel machine it is asking "#starting shell".what is it and how to solve this problem?

2047


Hi, I need information regarding LDOMS.Like What is LDOMS ,Creation of LDOMS, errors on LDOMS, troubleshooting LDOMS...etc.... pls post the info. Regards, Naresh

2761