Sponsored Content
Full Discussion: Init 6 & Init 0 problem
Top Forums UNIX for Advanced & Expert Users Init 6 & Init 0 problem Post 82563 by Unbeliever on Friday 2nd of September 2005 10:33:27 AM
Old 09-02-2005
Gah .. I really should explain myself better sometimes :-)

As RTM correctly points out shutdown is simply a script which then calls /sbin/init. His suggestion to determine which init you are running is a good one.

/usr/sbin/init and /sbin/init are *not* the same (one is statically linked the other dynamically) and you should try both to see if they do different things.

If /sbin/init doesn't work and /usr/sbin/init does then its possible that /sbin/init is corrupt. If /sbin/init works and /usr/sbin/init doesnt then /usr/sbin/init and/or one of the files it depends on (use: ldd /usr/sbin/init) maybe corrupt.
 

10 More Discussions You Might Find Interesting

1. Linux

Problem of booting system in init 5 level

Hi, I am using RHEL4 and I am not booting my computer into graphics mode i.e. It gets hangs after the step of Enabling swap space... I.e system is not able to enter into runlevel 5. However, when I boot it into 'runlevel3' and then I do "#startx", It enetrs... (1 Reply)
Discussion started by: jagdish.machhi@
1 Replies

2. Solaris

different between /sbin/init and /usr/sbin/init

root@test09 # ls -al /sbin/init -r-xr-xr-x 1 root sys 550000 Jun 29 2002 /sbin/init root@test09 # ls -al /usr/sbin/init -r-xr-xr-x 1 root sys 37100 Jun 29 2002 /usr/sbin/init (2 Replies)
Discussion started by: userking
2 Replies

3. UNIX for Dummies Questions & Answers

About init

I know if a parent process exits before its child, the last one becomes orphan for a while and then is added to the children of Init process. I'd like to know deeper 1 how the orphan becomes init process, 2 how init knows that from a some point on it has another child. Thank you in advance. (2 Replies)
Discussion started by: Puntino
2 Replies

4. Shell Programming and Scripting

Problem regarding Sed/Echo/Var Init

Greetings, I've visited this forums for a long time and normally got an right answer but this time my problem doesn't seem to go away. What I'm trying to do is the following: VAR="\n\nline1\nline2\nline3\nline4\nline5\nline6\nline7\n\n" (The count of newlines is varying!) If I echo this i... (3 Replies)
Discussion started by: ph1l
3 Replies

5. Linux

How to I change init levels after typing init 1

Dear all, I typed in init 1 on my redhat box as root and according to wikipedia (http://en.wikipedia.org/wiki/Runlevel): 1 Single-User Mode Does not configure network interfaces, start daemons, or allow non-root logins So now I can't connect back to it. How do I change the init back to 3?... (8 Replies)
Discussion started by: z1dane
8 Replies

6. Red Hat

Difference between 'init s' and 'init 1'

What is the difference between 'init s' and 'init 1'. I know that both will work to change the current run level to single user mode. Is there any difference in those two commands? (5 Replies)
Discussion started by: praveen_b744
5 Replies

7. Solaris

Difference between run level & init level

what are the major Difference Between run level & init level (2 Replies)
Discussion started by: rajaramrnb
2 Replies

8. UNIX for Advanced & Expert Users

Problem on init 0, execution is the same with init 6

Hi, I am experiencing a weird thing on my SUNFIRE machine with Solaris 9 OS. When I do init 0 to shutdown the machine to go to ok prompt, what it did was shutdown and reboot like an init 6 command do. I did check the corresponding rc scripts that were involved with init 0 and compared with rc... (2 Replies)
Discussion started by: Yenthanh
2 Replies

9. Solaris

What is the diffe b/w init s and init S

i did my research in finding the answer but couldn't find right one. Please give your inputs. (6 Replies)
Discussion started by: ranumala
6 Replies

10. Red Hat

init-script failing because of /etc/rc.d/init.d/functions

I encountered a problem on one of our database servers. OS: CentOS 5.5 final Kernel: 2.6.18-238.5.1.el5.028stab085.2 (OpenVZ kernel) We wrote some DB-Start/Stop-scripts ("/db2/admin/scripts_dba/start_services.ksh" and ".../stop_services.ksh") to start the database instances. (Database... (1 Reply)
Discussion started by: bakunin
1 Replies
TTYTAB()																  TTYTAB()

NAME
ttytab - table of login terminals SYNOPSIS
/etc/ttytab DESCRIPTION
The ttytab file lists all the terminal devices that one can login on. It is a simple text file that contains lines of the form: name type "getty" "init" The name and type fields are simple words, name is the name of the terminal device with /dev stripped off, and type tells the type of ter- minal to initialize the TERM environment variable. The getty and init fields may name commands that are run to allow one to login on the line, or to initialize the line. Both these fields may be more than one word if the whole field is enclosed in double quotes. Getty is usually simply the word getty, the command that prints a system identification banner and allows on to type a name to log in. Init is usually an stty command to set the baud rate and parity of a serial line. The init field may be omitted to indicate that no initialization is necessary, and the getty field may be left out to not start a login process. Terminals should not be left out, because their place in the ttytab file determines their slot number as returned by ttyslot(3). Comments (introduced by #) and empty lines are ignored. EXAMPLE
A ttytab for the console, two serial lines, and a pseudo tty entry: console minix getty tty00 vt100 getty "stty 9600" tty01 dialup getty "stty 38400" ttyp0 network ENVIRONMENT
TERM Terminal type NOTES
It is customary to set the type to dialup for a dialin line. One can check for that name in one's .profile. SEE ALSO
gettyent(3), ttyslot(3), init(8). AUTHOR
Kees J. Bot (kjb@cs.vu.nl) TTYTAB()
All times are GMT -4. The time now is 02:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy