LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-04-2015, 09:27 AM   #1
Duglas
Member
 
Registered: Mar 2009
Distribution: Debian
Posts: 69

Rep: Reputation: 2
xdm runs in all runlevels, when it should only run in 5


I have a amd64 pc and a i386 laptop. They both behaved perfectly with Wheezy.
By default I boot into xdm and Openbox. This works perfectly, all the time.
After an upgrade to Jessie, I get the following problem on both computers.

In /etc/lilo.conf I have:
image=/boot/vmlinuz-3.16.0-4-amd64
label=Linux_console
read-only
initrd=/boot/initrd.img-3.16.0-4-amd64

image=/boot/vmlinuz-3.16.0-4-amd64
label=Linux_desktop
read-only
initrd=/boot/initrd.img-3.16.0-4-amd64
append=5

In /etc/inittab I have:
# The default runlevel.
id:2:initdefault:

I have removed the links in /etc/rc{2,3,4}.d to /etc/init.d/xdm.

This has always booted runlevel 2 OR 5 as selected in lilo.

Now after the upgrade to Jessie, regardless of the lilo selection, I get runlevel 5.

Please help me bring back this choice.
 
Old 01-04-2015, 02:44 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,760

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
Looks like the upgrade installed systemd. inittab is not used and assume the default target is set to 5. The easiest fix would be to reinstall sysv. I have not played with lilo in a long time so maybe others know how to update it for systemd.
 
Old 01-06-2015, 04:59 AM   #3
Duglas
Member
 
Registered: Mar 2009
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 2
Thanks for the tip on systemd.

I have partially fixed the problem by doing a fresh install of Jessie.
By doing the install one step at a time I hope to learn about how systemd works.

Any tips on uptodate documentation as applied to Jessie?
 
Old 01-06-2015, 12:40 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Since fedora has had systemd longr than debian maybe you should checkout the fedora documentation.
 
Old 01-10-2015, 03:54 PM   #5
Duglas
Member
 
Registered: Mar 2009
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 2
I found the solution!
Because systemd sets the default runlevel to 5,
Lilo has to be given the line " append="2" ", after the stanza for runlevel 2.

Under "inittab" I have alway put the line " append="5", after the stanze for runlevel 5.
 
Old 01-10-2015, 04:39 PM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Congratulations! Glad you got it working.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] xdm init script problem - /var/run/xdm.pid is gone ? Vilius Debian 2 09-16-2010 03:06 AM
disabling XDM-AUTHORIZATION-1 in xdm shpenat Linux - Desktop 0 03-18-2009 09:11 AM
xdm failure to run a newly installed program ledatica Linux - Software 0 02-06-2005 04:39 PM
rm cannot remove /var/run/atd.pid and /var/run/xdm.pid danishmr Linux - Software 1 05-04-2004 08:01 AM
XDM opens XDM after login jpbarto Linux - Software 1 01-26-2004 10:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration