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 |
which is the fast SPARC or Intel ? and why?
What is the difference between private and public regions in Veritas Volume manager?
How do you replace a failed boot disk under meta in solaris? Step by step explanation?
How to add a FS in zone?
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?
user trying to login the system says invalid passwd but when u see the user in the nis master the user exists so what will be the problem and how to fix it
what is port no for NFS?
hoe many default no of groups there?
How can you unencapsulate a boot disk in VxVM?
Command to check all the process statistics..?
what is the difference b/w /etc/system profile and user profile...?
when i am starting solaris10 with 'fail safe mode' on intel machine it is asking "#starting shell".what is it and how to solve this problem?