[Pkg-xfce-devel] Bug#694539: Bug#694539: invalid executable path in upstart init file

Steve Langasek vorlon at debian.org
Wed Nov 28 02:00:02 UTC 2012


On Wed, Nov 28, 2012 at 12:47:33AM +0100, Jelmer Vernooij wrote:
> On Wed, 2012-11-28 at 00:26 +0100, Yves-Alexis Perez wrote:
> > On mar., 2012-11-27 at 14:27 +0100, Jelmer Vernooij wrote:
> > > Package: lightdm
> > > Version: 1.4.0-1
> > > Severity: normal

> > > lightdm's /etc/init/lightdm.conf file tries to run lightdm from
> > > /usr/bin/lightdm while it is in fact installed as /usr/sbin/lightdm.

> > > The attached patch fixes the path.

> > we removed the upstart init file for Wheezy because of #679409. I'm a
> > bit unsure if it was the same problem or not, if the upstart file
> > changed before 1.4 or something.

> > I'm adding Steve and Roger on CC: in case they have an opinion on this,
> > but I'd be happy to include the patch if it fixes upstart support in
> > lightdm (although I can't test).
> FWIW it works for me with the patch applied and the latest upstart in
> sid.

I'm at a loss to explain how this could be so.  Is the file below, taken
from the lightdm source, the correct one?  Because it contains no 'start on'
condition at all (nor a 'stop on'), which means the service would never be
automatically started at boot.

# lightdm - LightDM display manager
#
# The display manager service manages the X servers running on the
# system, providing login and auto-login services

description     "LightDM Display Manager"
author          "Robert Ancell <robert.ancell at gmail.com>"

emits login-session-start
emits desktop-session-start

exec /usr/bin/lightdm


For the record, the upstart job in Ubuntu has this start condition:

start on ((filesystem
           and runlevel [!06]
           and started dbus
           and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
                or stopped udev-fallback-graphics))
          or runlevel PREVLEVEL=S)

All of these events are now provided at boot on a Debian unstable system
with the exception of 'started dbus'.  AFAICS, lightdm can't add an upstart
job back until dbus is upstartified in Debian.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20121127/57cf2544/attachment-0001.pgp>


More information about the Pkg-xfce-devel mailing list