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 u can detach or remove the disk it is in Veritas (Vxvm) control that is the disk in the production server ?
3 Answers Tech Mahindra, Wipro,
kernel patch installation in solaris?
How do you boot from a Network with jumpstart?
what is incident management and change management and prob management in ticketing tool ,can u explain briefly?
6 Answers BlueStacks, HCL, IBM, TCS,
What is the procedure to do kernel patching?
You can ping servers on the subnet your workstation is on, but not other subnets. Why?
Local zone in shutting down state.how to bring state of zone to installed?
how to determine how many nfs server are there from nfs client
what file shows all available ports?
how u can push the user details in NIS
What is VTS?
8 Answers Bharti, Sun Microsystems, Suncore Microsystems,
how to check network statstics..?