BharathKumarRaju DasaraRaju
asked on
How to check default runlevel in solaris 10? i can not find in /etc/inittab
The output of /etc/inittab as below. could you please help me?
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# The /etc/inittab file controls the configuration of init(1M); for more
# information refer to init(1M) and inittab(4). It is no longer
# necessary to edit inittab(4) directly; administrators should use the
# Solaris Service Management Facility (SMF) to define services instead.
# Refer to smf(5) and the System Administration Guide for more
# information on SMF.
#
# For modifying parameters passed to ttymon, use svccfg(1m) to modify
# the SMF repository. For example:
#
# # svccfg
# svc:> select system/console-login
# svc:/system/console-login> setprop ttymon/terminal_type = "xterm"
# svc:/system/console-login> exit
#
#ident "@(#)inittab 1.41 04/12/14 SMI"
ap::sysinit:/sbin/autopush -f /etc/iu.ap
sp::sysinit:/sbin/soconfig -f /etc/sock2path
smf::sysinit:/lib/svc/bin/ svc.startd >/dev/msglog 2<>/dev/msglog </dev/console
p3:s1234:powerfail:/usr/sb in/shutdow n -y -i5 -g0 >/dev/msglog 2<>/dev/msglog
but who -r shows the default runlevel as 3 as below.
$who -r
. run-level 3 Jan 25 16:30 3 0 S
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# The /etc/inittab file controls the configuration of init(1M); for more
# information refer to init(1M) and inittab(4). It is no longer
# necessary to edit inittab(4) directly; administrators should use the
# Solaris Service Management Facility (SMF) to define services instead.
# Refer to smf(5) and the System Administration Guide for more
# information on SMF.
#
# For modifying parameters passed to ttymon, use svccfg(1m) to modify
# the SMF repository. For example:
#
# # svccfg
# svc:> select system/console-login
# svc:/system/console-login>
# svc:/system/console-login>
#
#ident "@(#)inittab 1.41 04/12/14 SMI"
ap::sysinit:/sbin/autopush
sp::sysinit:/sbin/soconfig
smf::sysinit:/lib/svc/bin/
p3:s1234:powerfail:/usr/sb
but who -r shows the default runlevel as 3 as below.
$who -r
. run-level 3 Jan 25 16:30 3 0 S
ASKER
@the_endjinn Thanks for your answer...you are telling that operating system defaultly will take the runlevel3 ? I think runlevel needs to be explicitly tell to the OS(typically into the /etc/inittab file). Could you please explain me how OS identifies the runlevel?
Could you please give me any document..which start from init process creation to the profile settings ?
How linux or unix OS boot from runlevel to the particular user login and his profile setup?
iam very much eager to learn how the background processes are taking place.
Thanks a lot for your earlier reply.
Could you please give me any document..which start from init process creation to the profile settings ?
How linux or unix OS boot from runlevel to the particular user login and his profile setup?
iam very much eager to learn how the background processes are taking place.
Thanks a lot for your earlier reply.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
@the_endjinn Could you please give me any document..which start from init process creation to the profile settings ? or a link so that i can study well and learn well about system configuratuion files in unix stratup scripts ...
Thanks in advance for your help
Thanks in advance for your help
I don't really have any links or documents detailing what you are after I'm afraid, the below might be useful? Maybe open another question with that as a specific request.
http://www.tldp.org/LDP/intro-linux/html/sect_04_02.html
http://www.yolinux.com/TUTORIALS/LinuxTutorialInitProcess.html
http://www.tldp.org/LDP/intro-linux/html/sect_04_02.html
http://www.yolinux.com/TUTORIALS/LinuxTutorialInitProcess.html
ASKER
Thank you so much for your concern. Iam going to read of these docs. Have a grt day
If you want to change it the you'll see it reflected.
http://docs.oracle.com/cd/E19963-01/html/821-1451/hbrunlevels-13026.html