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 do you boot from a Network with jumpstart?
where the NIS will be actually used (Situation)
How to configure llt and gab in VCS tell me step by step?
How many secondary groups allows to add..?
what is the use of /etc/path-to-inst file..?
What is RPC? Why do I need it?
what are the questions that will be asked for a 3yrs experienced candidate in solaris system admin. how to face first hr round if one puts fake experience of 2or 3 yrs in solaris system admin. please respond with an opt answer. thank you in advance...
How many default no of users r there?
in samba server if we share a file like a.txt from unix(solaris) to windows how it displays at windows.wheather like a.txt (or)A.txt.any case sensitive.why?
which is the fast SPARC or Intel ? and why?
What is the use of ufsdump command in solaris
What are the two settings you can change to make a system boot faster?