Bug#206714: marked as done (gdm: /etc/init.d/gdm failing to
create /var/run/gdm.pid file; impossible to STOP gdm using /etc/init.d/gdm)
Debian Bug Tracking System
owner@bugs.debian.org
Sat, 10 Jul 2004 18:33:04 -0700
Your message dated Sat, 10 Jul 2004 18:23:31 -0700
with message-id <20040711012331.GR28843@cyberhqz.com>
and subject line Bug#206714: ...Actually, almost certainly due to User Error...
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 22 Aug 2003 10:23:59 +0000
>From henley@guided-naafi.org Fri Aug 22 05:23:55 2003
Return-path: <henley@guided-naafi.org>
Received: from public1-horn1-4-cust8.cosh.broadband.ntl.com (Apu.exley.net) [80.3.187.8]
by master.debian.org with esmtp (Exim 3.35 1 (Debian))
id 19q95G-0005MX-00; Fri, 22 Aug 2003 05:23:55 -0500
Received: from exleym by Apu.exley.net with local (Exim 3.36 #1 (Debian))
id 19q954-0001oG-00; Fri, 22 Aug 2003 11:23:42 +0100
From: Matthew Exley <henley@guided-naafi.org>
Subject: gdm: /etc/init.d/gdm failing to create /var/run/gdm.pid file; impossible to STOP gdm using /etc/init.d/gdm
To: submit@bugs.debian.org
X-Mailer: bug 3.3.10.2
Message-Id: <E19q954-0001oG-00@Apu.exley.net>
Date: Fri, 22 Aug 2003 11:23:42 +0100
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0
tests=BAYES_20,HAS_PACKAGE,PENISACCENT
version=2.53-bugs.debian.org_2003_8_17
X-Spam-Level:
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_8_17 (1.174.2.15-2003-03-30-exp)
Package: gdm
Version: 2.4.1.3-2
Severity: normal
START of gdm via "/etc/init.d/gdm start" fails to create the PID file /var/run/gdm.pid, although
GDM does start correctly.
Later attempts to stop gdm using "/etc/init.d/gdm stop" fail with:
Stopping GNOME Display Manager: gdm not running.
..since start-stop-daemon can't find the PID file.
The call to start-stop-daemon to start gdm:
32 case "$1" in
33 start)
34 if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" -a "$HEED_DEFAULT_DISPLAY_MANAGER" = "true" - a "$(cat $DEFAULT_DISPLAY_MANAGER_FILE)" != "$DAEMON" ]; then
35 echo "Not starting GNOME Display Manager (gdm); it is not the default display man ager."
36 else
37 echo -n "Starting GNOME Display Manager: gdm"
38 start-stop-daemon --start --quiet --pidfile $PIDFILE --name gdm $SSD_ARG || echo -n " already running"
39 echo "."
40 fi
...doesn't appear to create /var/run/gdm.pid. According to bug #139582 this is due to a
conflict between start-stop-daemon and gdm itself.
A Work-around would be to manually create the pid file immediately after starting the daemon
using code similar to:
echo `ps -ef | grep gdm | awk '$3 ~ /^1$/ { print $2 }'` >$PIDFILE
(which should discriminate the root gdm process which has 1 as parent, at the expense of
using AWK to do so)
-- System Information Debian Release: testing/unstable Kernel Version: Linux
Apu 2.4.21.dsc-u10.apu2.120703 #1 Sun Jul 13 01:06:55 BST 2003 i686 GNU/Linux
Versions of the packages gdm depends on:
ii adduser 3.50 Add and remove users and groups
ii bonobo-activat 2.2.4-1 Bonobo Activation Framework
ii debconf 1.3.9 Debian configuration management system
ii dpkg 1.10.10 Package maintenance system for Debian
ii libart-2.0-2 2.3.14-1 Library of functions for 2D graphics - runti
ii libatk1.0-0 1.2.4-1 The ATK accessibility toolkit
ii libaudiofile0 0.2.3-4 The Audiofile Library
ii libbonobo2-0 2.2.3-1 Bonobo CORBA interfaces library
ii libbonobo-acti 2.2.4-1 Bonobo Activation Framework -- runtime libra
ii libbonoboui2-0 2.2.4-1 The Bonobo UI library
ii libc6 2.3.2-3 GNU C Library: Shared libraries and Timezone
ii libesd0 0.2.29-1 Enlightened Sound Daemon - Shared libraries
ii libgconf2-4 2.2.1-1 GNOME configuration database system librarie
ii libgcrypt1 1.1.12-3 LGPL Crypto library - runtime library
ii libglade2-0 2.0.1-5 Library to load .glade files at runtime
ii libglib2.0-0 2.2.2-1 The GLib library of C routines
ii libgnome2-0 2.2.3-2 The GNOME 2 library - runtime files
ii libgnomecanvas 2.2.1-1 A powerful object-oriented display - runtime
ii libgnomeui-0 2.2.2-2 The GNOME 2 libraries (User Interface) - run
ii libgnomevfs2-0 2.2.5-3 The GNOME virtual file-system libraries (for
ii libgnutls5 0.8.8-2 GNU TLS library - runtime library
ii libgtk2.0-0 2.2.2-3 The GTK+ graphical user interface library
ii libjpeg62 6b-8 The Independent JPEG Group's JPEG runtime li
ii liblinc1 1.0.3-3 library to simplify creating networked clien
ii liborbit2 2.6.3-2 Libraries for ORBit2 - a CORBA ORB
ii libpam0g 0.76-13.1 Pluggable Authentication Modules library
ii libpam-modules 0.76-13.1 Pluggable Authentication Modules for PAM
ii libpango1.0-0 1.2.3-1 Layout and rendering of internationalized te
ii libpopt0 1.7-2 lib for parsing cmdline parameters
ii librsvg2-2 2.2.5-1 SAX-based renderer library for SVG files. (f
ii libtasn1-0 0.1.2-1 Manage ASN.1 structures (runtime)
ii libwrap0 7.6-ipv6.1-3 Wietse Venema's TCP wrappers library
ii libxml2 2.5.8-2 GNOME XML library
ii xlibs 4.2.1-9 X Window System client libraries
ii zlib1g 1.1.4-14 compression library - runtime
rc libesd-alsa0 0.2.22-5 Enlightened Sound Daemon (ALSA) - Shared lib
--- Begin /etc/gdm/Init/Default (modified conffile)
#!/bin/sh
/usr/bin/X11/xconsole -file /dev/xconsole \
-verbose \
-geometry 1080x120 &
/usr/bin/X11/xsysinfo -notitle -nosmp -labels \
-update 3 \
-xrm "*customization: -color" \
-geometry 300x100+980+924 &
/usr/bin/X11/xset dpms 300 600 900
--- End /etc/gdm/Init/Default
--- Begin /etc/gdm/Sessions/Xsession (modified conffile)
#!/bin/bash -login
case $# in
1)
case $1 in
failsafe)
exec xterm -geometry 80x24-0-0
;;
esac
esac
for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER"
do
if ( cp /dev/null "$errfile" 2> /dev/null )
then
chmod 600 "$errfile"
exec > "$errfile" 2>&1
break
fi
done
freetemp=`which freetemp`
if [ -n "$freetemp" ]
then
freetemp
fi
startup=$HOME/.xsession
resources=$HOME/.Xresources
if [ -x "$startup" ]; then
exec "$startup"
elif [ -x "$HOME/.Xclients" ]; then
exec "$HOME/.Xclients"
elif [ -x /etc/X11/xinit/Xclients ]; then
exec /etc/X11/xinit/Xclients
else
if [ -f "$resources" ]; then
xrdb -load "$resources"
fi
if [ -n "`which xsm`" ]
then
exec xsm
else
echo "Xsession: xsm not found, just launching x-window-manager" >&2
exec x-window-manager
fi
fi
--- End /etc/gdm/Sessions/Xsession
--- Begin /etc/gdm/PreSession/Default (modified conffile)
#!/bin/sh
if [ -x /usr/bin/X11/sessreg ]; then
/usr/bin/X11/sessreg -a -w /var/log/wtmp -u /var/run/utmp -l $DISPLAY $USER
fi
--- End /etc/gdm/PreSession/Default
--- Begin /etc/gdm/gdm.conf (modified conffile)
[daemon]
Chooser=/usr/bin/gdmchooser --disable-sound --disable-crash-dialog
DefaultPath=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
DisplayInitDir=/etc/gdm/Init
Greeter=/usr/bin/gdmlogin --disable-sound --disable-crash-dialog
Group=gdm
HaltCommand=/sbin/shutdown -h now "Halted from gdm menu."
KillInitClients=true
LogDir=/var/log/gdm
PidFile=
PostSessionScriptDir=/etc/gdm/PostSession/
PreSessionScriptDir=/etc/gdm/PreSession/
RebootCommand=/sbin/shutdown -r now "Rebooted from gdm menu."
RootPath=/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin:/usr/games
ServAuthDir=/var/lib/gdm
SessionDir=/etc/gdm/Sessions/
User=gdm
UserAuthDir=
UserAuthFBDir=/tmp
UserAuthFile=.Xauthority
AutomaticLoginEnable=false
AutomaticLogin=
TimedLoginEnable=false
TimedLogin=
TimedLoginDelay=30
Configurator=/usr/bin/gdmconfig --disable-sound --disable-crash-dialog
SuspendCommand=/etc/init.d/gdm restart
FailsafeXServer=
XKeepsCrashing=_MOTIF_DRAG_RECEIVER_INFO
XKeepsCrashingConfigurators=/usr/bin/X11/XF86Setup /usr/bin/X11/Xconfigurator
AlwaysRestartServer=false
GnomeDefaultSession=/usr/share/gnome/default.session
[security]
AllowRoot=true
RelaxPermissions=0
RetryDelay=3
UserMaxFile=65536
VerboseAuth=true
AllowRemoteRoot=false
AllowRemoteAutoLogin=false
SessionMaxFile=524288
[xdmcp]
Enable=true
HonorIndirect=false
MaxPending=4
MaxPendingIndirect=4
MaxSessions=16
MaxWait=30
MaxWaitIndirect=30
Port=177
PingInterval=5
DisplaysPerHost=1
Willing=/etc/gdm/Xwilling
[gui]
GtkRC=/usr/share/themes/Default/gtk/gtkrc
MaxIconWidth=100
MaxIconHeight=100
[greeter]
Browser=true
DefaultFace=/usr/share/pixmaps/apu-mini.png
DefaultLocale=english
Exclude=root,bin,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,alias,backup,games,gnats,irc,list,majordom,man,msql,postgres,proxy,qmaild,qmaill,qmailp,qmailq,qmailr,qmails,sys,www-data,fetchmail,mailbod
Font=-monotype-monotype corsiva-medium-r-normal-*-*-220-*-*-p-*-iso8859-1
GlobalFaceDir=/usr/share/faces/
Icon=/usr/share/pixmaps/apu.png
LocaleFile=/etc/gdm/locale.conf
Logo=/usr/share/pixmaps/apu.png
Quiver=true
SystemMenu=true
Welcome=%n
Welcome[de]=Willkommen auf %n
Welcome[fr]=Bienvenue sur %n
Welcome[ja]=%n へようこそ
ShowGnomeChooserSession=true
ShowGnomeFailsafeSession=true
ShowXtermFailsafeSession=true
ConfigAvailable=true
TitleBar=false
LockPosition=false
SetPosition=true
PositionX=0
PositionY=500
XineramaScreen=0
BackgroundType=0
BackgroundImage=
BackgroundColor=#007777
BackgroundProgram=/usr/bin/xplanet -wait 600 -config apu-config -starfreq 0.1 -verbosity -1
BackgroundScaleToFit=true
BackgroundRemoteOnlyColor=true
Use24Clock=true
[chooser]
DefaultHostImg=/usr/share/pixmaps/nohost.png
HostImageDir=/usr/share/hosts/
ScanTime=3
Hosts=
Broadcast=true
[debug]
Enable=false
[server-Standard]
name=Standard server
command=/usr/bin/X11/X -deferglyphs 16
flexible=true
[server-foo]
name=XNest server
command=/usr/bin/X11/Xnest -name Xnest
flexible=true
[servers]
0=Standard
--- End /etc/gdm/gdm.conf
---------------------------------------
Received: (at 206714-done) by bugs.debian.org; 11 Jul 2004 01:23:39 +0000
>From rmurray@cyberhqz.com Sat Jul 10 18:23:39 2004
Return-path: <rmurray@cyberhqz.com>
Received: from (straylight.cyberhqz.com) [24.85.92.182] (postfix)
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1BjT47-0002Or-00; Sat, 10 Jul 2004 18:23:39 -0700
Received: from localhost (localhost [127.0.0.1])
by straylight.cyberhqz.com (Postfix) with ESMTP
id 32B94541A4; Sat, 10 Jul 2004 18:23:39 -0700 (PDT)
Received: from straylight.cyberhqz.com ([127.0.0.1])
by localhost (straylight [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 18796-01; Sat, 10 Jul 2004 18:23:31 -0700 (PDT)
Received: by straylight.cyberhqz.com (Postfix, from userid 1000)
id B4067541A3; Sat, 10 Jul 2004 18:23:31 -0700 (PDT)
Date: Sat, 10 Jul 2004 18:23:31 -0700
From: Ryan Murray <rmurray@debian.org>
To: Matthew Exley <henley@guided-naafi.org>,
206714-done@bugs.debian.org
Subject: Re: Bug#206714: ...Actually, almost certainly due to User Error...
Message-ID: <20040711012331.GR28843@cyberhqz.com>
References: <1062944355.14624.3.camel@Apu.exley.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1062944355.14624.3.camel@Apu.exley.net>
User-Agent: Mutt/1.3.28i
Delivered-To: 206714-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level:
On Sun, Sep 07, 2003 at 03:19:15PM +0100, Matthew Exley wrote:
> > PidFile=/var/run/gdm.pid
>
> ..the pid file is created and handled appropriately. My hackery to
> /etc/init.d/gdm is no longer required.
OK. Closing.
--
Ryan Murray, Debian Developer (rmurray@cyberhqz.com, rmurray@debian.org)
The opinions expressed here are my own.