Results 1 to 4 of 4

Thread: Possible to change the boot order of GDM?

  1. #1
    Join Date
    Jun 2005
    Location
    /world/OldEurope
    Beans
    184
    Distro
    Ubuntu 12.04 Precise Pangolin

    [Solved] Possible to change the boot order of GDM?

    Hi,

    I'm trying to have a script called during boot up. This script has to be executed after network is up but before GDM is started. Unfortunately the GDM start script has the link /etc/rc*.d/S30gdm and NetworkManager has /etc/rc*.d/S50NetworkManager. This order would have to be reversed, and my script started in between those two. So rc.local doesn't work, as it's executed in the end: /etc/rc*.d/S99rc.local.

    Any idea what to do now?
    Last edited by elektronaut; June 17th, 2009 at 12:11 PM.

  2. #2
    Join Date
    Jan 2007
    Location
    $here ? $here : $there
    Beans
    3,717
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Possible to change the boot order of GDM?

    You can swap the order just by renaming those symlinks. Things are executed in "alphabetical" order and neither of those two things are critical to start the system so, you could use:

    Code:
    S50gdm
    S51your-script
    S52network-manager
    Don't try to make something "fast" until you are able to quantify "slow".

  3. #3
    Join Date
    Jun 2005
    Location
    /world/OldEurope
    Beans
    184
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Possible to change the boot order of GDM?

    Thank you for your answer. I did the following a while ago:
    Code:
    cd /etc
    
    cp -ax rc2.d/S50NetworkManager rc2.d/S30NetworkManager
    rm rc2.d/S50NetworkManager 
    (same for /etc/rc[3-5].d/S50NetworkManager links)
    
    cp -ax rc2.d/S30gdm rc2.d/S34gdm
    rm rc2.d/S30gdm
    (same for /etc/rc[3-5].d/S30gdm links)
    So that NetworkManager starts before GDM. Then I inserted a start link for my script in /etc/rc[2-5].d:
    Code:
    ln -s S33display-config ../init.d/display-config
    So now the script is started after NetworkManager but before GDM. While the goal is achieved, I encountered a bug: ACPI isn't working anymore

    Is there something else than changing everything back to the original state I can do about that?

  4. #4
    Join Date
    Jun 2005
    Location
    /world/OldEurope
    Beans
    184
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Possible to change the boot order of GDM?

    I no longer need the start script anymore as I found another way of achieving what I originally wanted. Would be interesting nonetheless to know how this could break ACPI.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •