08-27-2009
Unix Run Levels confusion
Hi,
Could somebody throw some light on the below queries:
- For a run-level X, the S* scripts are executed when coming here from X-n run-level. The K* scripts are executed when coming to X runlevel from X+n runlevel.
- Does reaching to runlevel X from X-3 executes K* scritps from X-2 & X-1 also or it directly reaches X runlevel. Vice-versa of executing S* scripts while reaching X runlevel from X=3 runlevel.
Are the above true for all Unix variants or different?
Thanks
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Is there a limit to the number of symbolic links you can have?
I tried to vi the symbolic link relating to a file and got the following error:
"filename" Too many levels of symbolic links
There is only one symbolic link to one file in this case, but there are >2000 other links to... (2 Replies)
Discussion started by: Bab00shka
2 Replies
2. Solaris
hi,
what are the RAID Levels followed for various File systems ?
thanks (3 Replies)
Discussion started by: sol8admin
3 Replies
3. UNIX for Dummies Questions & Answers
:confused: some one please tell me where i can possibly find out what is unix 10.2 and the basic system functions of it is. I really need help! (1 Reply)
Discussion started by: tribb24
1 Replies
4. Solaris
I have a problem, i dont know if its a normal behaviour or not, i can go to a lower init level, but i cant go to a higher one again, for instance i can run the command init 2 while im at init 3 and when i do who -r i find myself go down to 2 but if i type init 3 and wait im still finding myself in... (1 Reply)
Discussion started by: XP_2600
1 Replies
5. Solaris
Dear Friends..!!
i am quit confused about the SOLARIES RUN level that is 0 . 1 or s S ...
please let me know the diffirence between these run level ... 0,1 and s S...
have a great day
Uday naikwadi (1 Reply)
Discussion started by: udayn
1 Replies
6. Solaris
Hello,
I have a simple question because I can not find the information at oracle.com
I want to buy support for OS Solaris and Servers hardware.
I need information what are the levels of support and how much they cost?
I need a help.
Have a nice day (3 Replies)
Discussion started by: bieszczaders
3 Replies
7. UNIX for Dummies Questions & Answers
I know that windows uses CRLF as a end of line character while Unix uses LF. But visually i could not see any difference in files while creating on either of plat forms.
CR (Carriage Return) means to bring cursor to beginning of line while LF (Line feed) means to bring cursor to next line... (5 Replies)
Discussion started by: sarbjit
5 Replies
8. Solaris
Hi Guys,
I need to change the following script ( which is good for Linux) for Solris 11
#start oracle
start on runlevel
stop on runlevel
What it should be for Solrais 11.
Thanks for your help.
Regards
Terry (2 Replies)
Discussion started by: terrykhatri531
2 Replies
9. Debian
Hi this is my first thread. I use KDE and Gnome on Debian. I configured inittab like what it should be. But when i have an inittab file i can't see anything when i run who -r command.
This is the result of who -r without /etc/inittab
hwpplayer1@build3:~$ who -r
açılış-seviyesi 5... (4 Replies)
Discussion started by: hwpplayer1
4 Replies
LEARN ABOUT LINUX
runlevel
runlevel(8) System Manager's Manual runlevel(8)
NAME
runlevel - output previous and current runlevel
SYNOPSIS
runlevel [OPTION]... [UTMP]
DESCRIPTION
runlevel reads the system UTMP file, which defaults to /var/run/utmp when no alternate filename is given, to locate the most recent run-
level record.
The previous and current runlevel from that record are output separated by a single space. If there is no previous runlevel in the record,
the letter N will be substituted.
If no runlevel record can be found, runlevel outputs the word unknown and exits with an error.
During system boot, the environment variables RUNLEVEL and PREVLEVEL will be set by the init(8) daemon, these come from the runlevel(7)
event generated by telinit(8) or shutdown(8).
When these environment variables are set, runlevel will output the values from these instead. Thus runlevel can be used in rc scripts as a
replacement for the System-V who(1) -r command.
OPTIONS
--quiet
Does not output the current and previous runlevel, nor does it output unknown in the case of error (but it will exit with an error
code).
This may be used to test for the presence of a runlevel entry, or to check for errors reading from the file.
EXIT STATUS
runlevel will exit with status 0 if a UTMP record was found, otherwise it will exit with status 1.
ENVIRONMENT
RUNLEVEL
runlevel will read the current runlevel from this environment variable if set in preference to reading from /var/run/utmp
PREVLEVEL
runlevel will read the previous runlevel from this environment variable if RUNLEVEL
was given, in preference to reading from /var/run/utmp
FILES
/var/run/utmp
Where the current and previous runlevels will be read from.
NOTES
The Upstart init(8) daemon does not keep track of runlevels itself, instead they are implemented entirely by its userspace tools.
A change of runlevel is signalled by the runlevel(7) event, generated by either the telinit(8) or shutdown(8) tools. This event includes
the new runlevel in the RUNLEVEL environment variable, as well as the previous runlevel (obtained from their own environment or from
/var/run/utmp) in the PREVLEVEL variable.
As well as generating the event, both tools write the new runlevel back to /var/run/utmp and append a new entry to /var/log/wtmp.
AUTHOR
Written by Scott James Remnant <scott@netsplit.com>
REPORTING BUGS
Report bugs at <https://launchpad.net/upstart/+bugs>
COPYRIGHT
Copyright (C) 2009 Canonical Ltd.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO
runlevel(7) init(8) telinit(8) shutdown(8) who(1)
Upstart 2009-07-09 runlevel(8)