[Pkg-utopia-maintainers] Bug#624250: console-kit-daemon holds tty

LionMV LionMV at yandex.ru
Tue Apr 26 20:54:00 UTC 2011


Package: consolekit
Version: 0.4.1-4

If logged in with KDM/GDM or session launched via ck-launch-session process with name "console-kit-daemons" grabs current vt and won't release it until killed manually. This behavior leads to launch impossibility X again in vt7 after stopping.

Steps to reproduce:
1) switch to vt1 for example
2) say /etc/init.d/kdm stop
   (GDM, XDM, whatever)
3) say /etc/init.d/kdm start (And login manager starts in vt8. try to switch to vt7 and see just blinking cursor)
4) now try deallocvt 7 (and as you can see it is busy)
5) killall console-kit-daemon
6) deallocvt 7 (now it works)
7) /etc/init.d/kdm stop 
8) /etc/init.d/kdm start (now it starts in vt7 as expected)

Here is a bug filled, but no reaction from freedesktop: https://bugs.freedesktop.org/show_bug.cgi?id=29920
But workaround was suggested in comments there.

And another solution: in Gentoo Linux initscript created for consolekit:
========================================================================================
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/sys-auth/consolekit/files/consolekit-0.1.rc,v 1.2 2009/09/12 19:46:19 nirbheek Exp $

depend() {
        need dbus
        use logger
}

start() {
        ebegin "Starting ConsoleKit daemon"

        start-stop-daemon --start -q \
                --pidfile /var/run/ConsoleKit/pid \
                --exec /usr/sbin/console-kit-daemon --
        eend $?
}

stop() {
        ebegin "Stopping ConsoleKit daemon"
        start-stop-daemon --stop -q --pidfile /var/run/ConsoleKit/pid
        eend $?
}
========================================================================================

May be such initscript can be added to consolekit debian package too?





More information about the Pkg-utopia-maintainers mailing list