There are 8 different kinds of run levels exist in Solaris
0 - Dead mode (power off)
s - Single user mode (maintainance mode)
1 - Single user mode
2 - Multi user mode
3 - Multi user mode
4 - Reserved
5 - Power off
6 - Reboot
1. init s : It is called as single user mode also known as maintainance mode. When you bring the system to this level, all the terminal logins and use logins are disconnected, and all the filesystems are unmounted except root (/) & root user (/user).
2. init 1 : It is same as 'init s' except 'terminal login enable'. It is a single usermode in which 'terminal login' are allowed and 'user logins' are disconnected and new logins are not allowed and all the filesystems are unmounted except root(/), root user(/user).
3. init 2: It is a multi user mode in which all the user logins, & terminal logins are allowed. and all the file systems in mounted state but NFS services will not be working.
4. init 3: (Default run level): It is a multiuser mode in which all allow, NFS also. All the user logins & terminal logins are allowed. All the file system in mounted state along with NFS.
5. init 4: It is reserved for future purpose
6. init 5: power off
7. init 6: reboot
note: For all this run levels the respective services will be stored indirectly in /etc/rcn.d
ex: /etc/rc1.d // all init 1, rc- run control script
Types of services:
1. legacy run services (rc) (system)
2. SMF(service management facility) services (online) (svc) (user)
1. The services which are under control of 'rc' scripts are called legacy run services. which is not maintained by SMF. it is under control of system
2. SMF: the services under control of SVCS are called SMF service. it is under control of user
# svcs // it will show all services
ex:
# cd /etc/rc1.d (display some services of runlevel 1) // k- kill mode (many)
#ls // s- start mode (1)
# cd /etc/rc2.d (display some services of runlevel 2)
Note: for every run level we have respective services which are place under /etc/rcn.d
0 - Dead mode (power off)
s - Single user mode (maintainance mode)
1 - Single user mode
2 - Multi user mode
3 - Multi user mode
4 - Reserved
5 - Power off
6 - Reboot
1. init s : It is called as single user mode also known as maintainance mode. When you bring the system to this level, all the terminal logins and use logins are disconnected, and all the filesystems are unmounted except root (/) & root user (/user).
2. init 1 : It is same as 'init s' except 'terminal login enable'. It is a single usermode in which 'terminal login' are allowed and 'user logins' are disconnected and new logins are not allowed and all the filesystems are unmounted except root(/), root user(/user).
3. init 2: It is a multi user mode in which all the user logins, & terminal logins are allowed. and all the file systems in mounted state but NFS services will not be working.
4. init 3: (Default run level): It is a multiuser mode in which all allow, NFS also. All the user logins & terminal logins are allowed. All the file system in mounted state along with NFS.
5. init 4: It is reserved for future purpose
6. init 5: power off
7. init 6: reboot
note: For all this run levels the respective services will be stored indirectly in /etc/rcn.d
ex: /etc/rc1.d // all init 1, rc- run control script
Types of services:
1. legacy run services (rc) (system)
2. SMF(service management facility) services (online) (svc) (user)
1. The services which are under control of 'rc' scripts are called legacy run services. which is not maintained by SMF. it is under control of system
2. SMF: the services under control of SVCS are called SMF service. it is under control of user
# svcs // it will show all services
ex:
# cd /etc/rc1.d (display some services of runlevel 1) // k- kill mode (many)
#ls // s- start mode (1)
# cd /etc/rc2.d (display some services of runlevel 2)
Note: for every run level we have respective services which are place under /etc/rcn.d
The init 0 is not power off. It it power on at OK prompt.
ReplyDeleteHow can we identify what service is started at what level. Before there was /etc/initN.d where N was the run level. How do we know the equivalent with SMF ??