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 |
wht is the purpose of autofs and automountd commands..?
how to change nic card from half duplex to full duplex?
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 to detect a newly added device if you are not able to detect the device using devfsadm?
Unable to telnet any of my servers in the network..? wht may be the reason
what are the deamons for nis server,nis slave,nis client
2 Answers IBM, Satyam, Tech Mahindra,
i have sun ultra10 machine,OS is solaris 9 and i have single harddisk, now i want same ,exact copy of data in anoher harddisk so that i should be able boot from new harddisk, how do yo do this? is it called as cloning?
if storage contain 500 disks in this one disk is failed,we placed new disk in failed disk place,how can we find out exact path of the newly installed disk when we execute format command?
how can u create volume
how to chk who r the users currently ogged in to the system..?
what is the use RAID and which is the best(Solaris)
For maintenance purpose the system will be down and up as per weekly or monthly in production mode ,what are the needed points to mind ,what are that?