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@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@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@test-adrian1:~>

With the attached patch, disabling and enabling works correctly:

root@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@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@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
--- lightdm.service.orig	2014-04-27 11:12:30.000000000 +0200
+++ lightdm.service	2014-06-27 22:45:45.428997776 +0200
@@ -10,3 +10,7 @@
 ExecStart=/usr/sbin/lightdm
 Restart=always
 BusName=org.freedesktop.DisplayManager
+
+[Install]
+Alias=display-manager.service
+WantedBy=graphical.target
_______________________________________________
Pkg-xfce-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-xfce-devel

Reply via email to