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 |
If you can ping a server, but can't telnet or ssh to it, what could be the problem?
why u can't go for windows& why u chosen UNIX
how to know OS release?
What is OBP and how do you access it?
what r the packages for intel machine when u install
what is the use of /etc/path-to-inst file..?
how to see nfs server from the client and the share directories
what is state database replica and how to create it
how to chk who r the users currently ogged in to the system..?
How to add a patch on multiple servers(400) at a time.
what is the significance of 51% state database replicas in SVM?
what is the diff between Sol9 and Sol10 Booting procedure