[Pkg-xfce-devel] Bug#752932: lightdm: systemd service file misses [Install] section

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Fri Jun 27 20:52:02 UTC 2014


Package: lightdm
Version: 1.10.1-3
Severity: normal
Tags: patch

Hello!

The systemd service file currently supplied with lightdm does not
provide an install section, it is therefore not possible to disable
and re-enable lightdm with systemd's systemctl:

root at test-adrian1:~> systemctl disable lightdm.service
Synchronizing state for lightdm.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d lightdm defaults
Executing /usr/sbin/update-rc.d lightdm disable
insserv: warning: current start runlevel(s) (empty) of script `lightdm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `lightdm' overrides LSB defaults (0 1 6).
rm '/etc/systemd/system/display-manager.service'
root at test-adrian1:~> systemctl enable lightdm.service
Synchronizing state for lightdm.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d lightdm defaults
insserv: warning: current start runlevel(s) (empty) of script `lightdm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `lightdm' overrides LSB defaults (0 1 6).
Executing /usr/sbin/update-rc.d lightdm enable
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
   .wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).
root at test-adrian1:~>

With the attached patch, disabling and enabling works correctly:

root at test-adrian1:~> systemctl disable lightdm.service
Synchronizing state for lightdm.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d lightdm defaults
Executing /usr/sbin/update-rc.d lightdm disable
insserv: warning: current start runlevel(s) (empty) of script `lightdm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `lightdm' overrides LSB defaults (0 1 6).
root at test-adrian1:~> systemctl enable lightdm.service
Synchronizing state for lightdm.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d lightdm defaults
insserv: warning: current start runlevel(s) (empty) of script `lightdm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `lightdm' overrides LSB defaults (0 1 6).
Executing /usr/sbin/update-rc.d lightdm enable
ln -s '/lib/systemd/system/lightdm.service' '/etc/systemd/system/display-manager.service'
root at test-adrian1:~>

Cheers,

Adrian

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)

Kernel: Linux 3.15-rc8-powerpc
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lightdm depends on:
ii  adduser                                3.113+nmu3
ii  consolekit                             0.4.6-5
ii  dbus                                   1.8.4-1
ii  debconf [debconf-2.0]                  1.5.53
ii  libc6                                  2.19-4
ii  libgcrypt11                            1.5.3-4
ii  libglib2.0-0                           2.40.0-3
ii  libpam-systemd                         208-1
ii  libpam0g                               1.1.8-3
ii  libxcb1                                1.10-3
ii  libxdmcp6                              1:1.1.1-1
ii  lightdm-gtk-greeter [lightdm-greeter]  1.8.5-1

Versions of packages lightdm recommends:
ii  xserver-xorg  1:7.7+7

Versions of packages lightdm suggests:
ii  accountsservice  0.6.37-1
ii  upower           0.9.23-2+b2

-- debconf information excluded
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lightdm-service-add-install-section.patch
Type: text/x-diff
Size: 291 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20140627/cc2b497c/attachment-0001.patch>


More information about the Pkg-xfce-devel mailing list