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 |
How can you unencapsulate a boot disk in VxVM?
what is difference between tar and cpio
How do you give a user access to an application or program that needs to run as root without giving them the root password?
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
what is daemon? NFS & NIs – Daemons?
How to repalce a failed disk?
what r the files that the SVM perfumes
what are soft links and hard links, and differentiate them.
what r the packages for intel machine when u install
how to check packets transmission statistcs b/w servers..?
explain Jumpstat configuration..?
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?