• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1048
  • Last Modified:

init 6: what script to boot the system

Hi,

I know when we do init 6, rc6 will be called to shut down the system. What I am wondering is when the system comes back with autoboot, what is the script called to boot the system? Thanks
0
ebi168
Asked:
ebi168
  • 2
2 Solutions
 
yuzhCommented:
Have a look at "Booting process in Solaris":
http://www.adminschoice.com/docs/booting_process_in_solaris.htm
0
 
OtetelisanuCommented:
Warning :

if you reboot the system with
init  [ 0123456abcQqSs ] or reboot
the system not start the files in /etc/rc0.d
(K files) to down system.

This init or reboot  kill the processes.
When you have a DB (Example : Oracle , Sybase , db2)
is same as power off for DB.

Only schutdown active the down programs in the /etc/rc0.d
(K files)
Example:

shutdown -y -i6 -g5

Look man shutdown

or cat /etc/shutdown

0
 
ebi168Author Commented:
Otetelisanu:

I don't quite understand your words. What is the difference between init 6 and shutdown?
0
 
OtetelisanuCommented:
With schutdown all script from /etc/rc2.d work.

You can make a test.

Write a script example K01test
echo 'Test' >/your_dir/file_test
and
chmod a+x  K01test.

If you start  schutdown after reboot find the file /your_dir/file_test
If you  start  init 6 you have not the  file .

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now