[NBLUG/talk] Ubuntu 10.04, gdm and rc2.d

Emanuel R e.rasolof at flowingsun.org
Tue Apr 20 11:05:53 PDT 2010


On 04/20/2010 08:05 AM, Kyle Rankin wrote:
> On Mon, Apr 19, 2010 at 04:35:04PM -0700, E Frank Ball III wrote:
>    
>> On Mon, Apr 19, 2010 at 04:27:09PM -0700, Bob Blick wrote:
>>   >  I am trying out the beta2 of Ubuntu 10.04 and I notice that I don't see
>>   >  a script such as S13gdm in the /etc/rc2.d directory.
>>   >
>>   >  Any ideas how the whole gnome starting process is initiated in this new
>>   >  version of Ubuntu?
>>   >
>>   >  Mostly I want to know because I want to stop the automatic starting of X
>>   >  but don't want to uninstall gdm to do that.
>>   >
>>   >  Thanks, Bob
>>
>> It's started by /etc/init/gdm.conf
>> but I don't know how to disable it.
>>
>> -- 
>>
>>     E Frank Ball                frankb at frankb.us
>>
>>      
> If you don't want X you might want to consider installing the server
> version, as it doesn't include X by default and would save wasted space.  I
> don't have a 10.04 beta2 machine in front of me right this minute, but if
> you do open that /etc/init/gdm.conf file (it's an upstart script) you
> should see some reference to "start on" something. That triggers the
> upstart script and you should be able to just comment that out.
>
>    
# gdm - GNOME Display Manager
#
# The display manager service manages the X servers running on the
# system, providing login and auto-login services

description    "GNOME Display Manager"
author        "William Jon McCann <mccann at jhu.edu>"

start on (filesystem
           and started dbus
           and (graphics-device-added fb0 PRIMARY_DEVICE_FOR_DISPLAY=1
                or drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
                or stopped udevtrigger))
stop on runlevel [016]

emits starting-dm

env XORGCONFIG=/etc/X11/xorg.conf

script
     if [ -n "$UPSTART_EVENTS" ]
     then
     [ ! -f /etc/X11/default-display-manager -o "$(cat 
/etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/gdm" ] || { 
stop; exit 0; }

     # Check kernel command-line for inhibitors
     for ARG in $(cat /proc/cmdline)
     do
         case "${ARG}" in
         text|-s|s|S|single)
             plymouth quit || :  # We have the ball here
             exit 0
             ;;
         esac
     done
     fi

     if [ -r /etc/default/locale ]; then
     . /etc/default/locale
     export LANG LANGUAGE
     elif [ -r /etc/environment ]; then
     . /etc/environment
     export LANG LANGUAGE
     fi
     export XORGCONFIG

     exec gdm-binary $CONFIG_FILE
end script



More information about the talk mailing list