You are not logged in.

#1 2020-03-18 15:46:37

nfortier
Member
Registered: 2011-09-18
Posts: 49

[SOLVED] LXDM restarts continuously (loops) when xorg not functioning

I use LXDM (0.5.3-6) as display manager that starts openbox.

I recently had an issue with my nvidia driver that prevented X from starting normally. That is fixed now, but LXDM behaviour during the problem looks wrong to me.
LXDM would restart every few seconds. I could not switch to a another tty and kill it or do anything as I was being brought back to the original tty with LXDM doing its loop.
This is the end of the output from journalctl -b. Note "restart counter is a 448"...

Mar 17 10:03:37 lino systemd[1]: Started LXDE Display Manager.
Mar 17 10:03:37 lino audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lxdm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mar 17 10:03:37 lino kernel: audit: type=1130 audit(1584453817.533:1838): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lxdm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mar 17 10:03:42 lino systemd[1]: lxdm.service: Main process exited, code=exited, status=1/FAILURE
Mar 17 10:03:42 lino systemd[1]: lxdm.service: Failed with result 'exit-code'.
Mar 17 10:03:42 lino audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lxdm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Mar 17 10:03:42 lino kernel: audit: type=1131 audit(1584453822.610:1839): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lxdm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Mar 17 10:03:42 lino systemd[1]: lxdm.service: Scheduled restart job, restart counter is at 448.
Mar 17 10:03:42 lino systemd[1]: Stopped LXDE Display Manager.

I ended up having to boot from a live cd, chroot and disable LXDM. When I used XDM instead, it would of course fail, but would do so once only, allowing me at least to work from the console to diagnose the problem.
This is my /etc/lxdm/lxdm.conf:

[base]
## uncomment and set autologin username to enable autologin
# autologin=dgod

## uncomment and set timeout to enable timeout autologin,
## the value should >=5
# timeout=10

## default session or desktop used when no systemwide config
# nf commenté; voir ~/.xprofile
# session=/usr/bin/openbox-session
# fn

## uncomment and set to set numlock on your keyboard
# numlock=0

## set this if you don't want to put xauth file at ~/.Xauthority
# xauth_path=/tmp

# not ask password for users who have empty password
# skip_password=1

## greeter used to welcome the user
greeter=/usr/lib/lxdm/lxdm-greeter-gtk

[server]
## arg used to start xserver, not fully function
arg=/usr/bin/X -background vt1
# uncomment this if you really want xserver listen to tcp
# tcp_listen=1
# uncoment this if you want reset the xserver after logou
# reset=1

[display]
## gtk theme used by greeter
gtk_theme=Adwaita

## background of the greeter
#bg=/usr/share/backgrounds/default.png
# nf ne fct pas, affiche couleur unie:
#bg=/usr/share/lxdm/themes/nf/IMGP5500-1.jpg
bg=/usr/share/lxdm/themes/nf/bk.png

## if show bottom pane
bottom_pane=1

## if show language select control
lang=0

## if show keyboard layout select control
keyboard=0

## the theme of greeter
theme=nf

[input]

[userlist]
## if disable the user list control at greeter
disable=1

## whitelist user
white=

## blacklist user
black=

Am I missing something? Should I file a bug report and if so, where, since the latest bug in sourceforge for lxdm is 5 years old?

Last edited by nfortier (2020-03-19 14:44:40)

Offline

#2 2020-03-19 02:31:08

jonno2002
Member
Registered: 2016-11-21
Posts: 684

Re: [SOLVED] LXDM restarts continuously (loops) when xorg not functioning

systemctl edit lxdm

insert this:

[Service]
Restart=no

should do the trick, im no expert so if someone knows better by all means correct me.

sorry for the multiple edits, this is my final correct solution

Last edited by jonno2002 (2020-03-19 02:39:09)

Offline

#3 2020-03-19 14:43:54

nfortier
Member
Registered: 2011-09-18
Posts: 49

Re: [SOLVED] LXDM restarts continuously (loops) when xorg not functioning

Thank you!
Indeed, my /usr/lib/systemd/system/lxdm.service has:

[Service]
Restart=always

For those interested, there is documentation here:
https://www.freedesktop.org/software/sy … l#Restart=

It is also possible to limit the time during which restarts will be tried, the number of restarts, and the circumstance in which restart will be attempted. It seems more complicated than that and I don't have the time to experiment right now.
See
https://www.freedesktop.org/software/sy … unit.html#
https://serverfault.com/questions/73662 … val/962338.

Offline

Board footer

Powered by FluxBB