LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slack 13.37 refuses to go to runlevel 4 at boot (https://www.linuxquestions.org/questions/slackware-14/slack-13-37-refuses-to-go-to-runlevel-4-at-boot-4175421497/)

halborr 08-10-2012 07:16 PM

Slack 13.37 refuses to go to runlevel 4 at boot
 
I recently decided I wanted to boot straight into X instead of to the console as I have always done. I changed the default runlevel in /etc/inittab to 4 and.... nothing. It's as if the file isn't being read. I can't even manually "telinit 4". I can run /etc/rc.d/rc.4 and it works perfectly (I run it manually in rc.local for the time being).

What is going on here?

Code:

#
# inittab      This file describes how the INIT process should set up
#              the system in a certain run-level.
#
# Version:      @(#)inittab            2.04    17/05/93        MvS
#                                      2.10    02/10/95        PV
#                                      3.00    02/06/1999      PV
#                                      4.00    04/10/2002      PV
#                                      13.37    2011-03-25      PJV
#
# Author:      Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified by:  Patrick J. Volkerding, <volkerdi@slackware.com>
#

# These are the default runlevels in Slackware:
#  0 = halt
#  1 = single user mode
#  2 = unused (but configured the same as runlevel 3)
#  3 = multiuser mode (default Slackware runlevel)
#  4 = X11 with KDM/GDM/XDM (session managers)
#  5 = unused (but configured the same as runlevel 3)
#  6 = reboot

# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:

# System initialization (runs when system boots).
si:S:sysinit:/etc/rc.d/rc.S

# Script to run when going single user (runlevel 1).
su:1S:wait:/etc/rc.d/rc.K

# Script to run when going multi user.
rc:2345:wait:/etc/rc.d/rc.M

# What to do at the "Three Finger Salute".
ca::ctrlaltdel:/sbin/shutdown -t5 -r now

# Runlevel 0 halts the system.
l0:0:wait:/etc/rc.d/rc.0

# Runlevel 6 reboots the system.
l6:6:wait:/etc/rc.d/rc.6

# What to do when power fails.
pf::powerfail:/sbin/genpowerfail start

# If power is back, cancel the running shutdown.
pg::powerokwait:/sbin/genpowerfail stop

# These are the standard console login getties in multiuser mode:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:12345:respawn:/sbin/agetty 38400 tty2 linux
c3:12345:respawn:/sbin/agetty 38400 tty3 linux
c4:12345:respawn:/sbin/agetty 38400 tty4 linux
c5:12345:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux

# Runlevel 4 also starts /etc/rc.d/rc.4 to run a display manager for X. 
# Display managers are preferred in this order:  gdm, kdm, xdm x1:4:respawn:/etc/rc.d/rc.4
# End of /etc/inittab


Ser Olmy 08-10-2012 07:35 PM

Quote:

Originally Posted by halborr (Post 4751313)
What is going on here?

Code:

# Runlevel 4 also starts /etc/rc.d/rc.4 to run a display manager for X. 
# Display managers are preferred in this order:  gdm, kdm, xdm x1:4:respawn:/etc/rc.d/rc.4
# End of /etc/inittab


You're missing a linefeed. x1:4:respawn:/etc/rc.d/rc.4 should be on a line of its own.

halborr 08-10-2012 07:56 PM

Great! I must have fat-fingered something when editing the file.

Thanks!


All times are GMT -5. The time now is 09:39 AM.