Bug#778362: Periodic (90s) restart of KDM by systemd on jessie

Alexandre Detiste alexandre.detiste at gmail.com
Sat Feb 14 08:14:15 GMT 2015


Hi,

Here is the kdm.service I copied from some other distro months ago
when I managed to broke my sysv-generator:

The interresting bits:
- "nodeamon": I guess with this,"Type=forking" is not needed anymore
- "IgnoreSIGPIPE" = this is set by all generator and when your unit
(like anacron, cron)
                              might start child process that run some complex
                              shell script . you can debug this with
"yes | head"

The other bits are cargo-culted ... I guess this is the reason I don't
get a login on tty1 anymore,
but I prefer it this way.



tchet at antec:~$ systemctl cat kdm
# /etc/systemd/system/kdm.service
[Unit]
Description=KDM Display Manager
Conflicts=getty at tty1.service
After=systemd-user-sessions.service getty at tty1.service plymouth-quit.service

[Service]
ExecStart=/usr/bin/kdm -nodaemon
Restart=always
IgnoreSIGPIPE=no

[Install]
Alias=display-manager.service
WantedBy=multi-user.target

>  As an aside, the contents of the kdm.service file I'd used follows:
>
>
> [Unit]
> Description=KDE Display Manager
> Documentation=man:kdm(1)
> After=systemd-user-sessions.service
>
> [Service]
> ExecStartPre=/bin/sh -c '[ "$(cat /etc/X11/default-display-manager
> 2>/dev/null)" = "/usr/bin/kdm" ]'
> # ExecStart=/usr/bin/kdm -debug 0x08F vt1
> Type=forking
> ExecStart=/usr/bin/kdm
> Restart=always
> BusName=org.freedesktop.DisplayManager




More information about the Pkg-systemd-maintainers mailing list