Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: HOWTO: Speed up shutdown / Reboot (dapper)

  1. #1
    Join Date
    Sep 2005
    Beans
    762

    HOWTO: Speed up shutdown / Reboot (dapper)

    Ok this is taken from Efty, in Efty they are going to remove some shutdown/reboot scripts. So I tried it myself on my dapper... it works great, much faster shutdown and reboot.

    Read the section "Shutdown scripts in ubuntu-desktop" at
    Code:
    https://wiki.ubuntu.com/Teardown
    I also attached two script for removal and restore on the shutdown/reboot scripts.

    This scripts are from my rc0.d and rc6.d content, it means that I may have more scripts to remove than you may have. Or less.

    This is not a problem since I have included all the *original* scripts as well to be removed.

    Extract the files from the compressed archive.
    Then open the terminal in the location where you have extracted the files from the archive.

    Then run the script as sudo
    To remove shutdown/reboot scripts.
    Code:
    sudo sh remove_shutdown_services.sh
    To restore the shutdown/reboot scripts.
    Code:
    sudo sh restore_shutdown_services.sh
    EDIT: Replaced the scripts, done a small modification
    Attached Files Attached Files
    Last edited by yopnono; November 29th, 2006 at 12:38 AM.

  2. #2
    Join Date
    Aug 2006
    Location
    Australia
    Beans
    17
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: Speed up shutdown / Reboot (dapper)

    awesome thanks, what previously took (benchmarked before this script was run) about 1:05 now takes about 20 seconds in total to shutdown (almost as good as Windows with the User Profile Hive Cleanup utility - around 10 seconds!)

    Would it be possible to first check that the file exists before removing it so we can tell what was disabled/removed? Maybe create a generic function, parse the file to remove as the argument and output if it was disabled... I had several items not found but all is good

    Thanks!

  3. #3
    Join Date
    Oct 2005
    Beans
    102

    Re: HOWTO: Speed up shutdown / Reboot (dapper)

    Wow! Very nice thank you!

  4. #4
    Join Date
    Sep 2005
    Beans
    762

    Re: HOWTO: Speed up shutdown / Reboot (dapper)

    Quote Originally Posted by 2shanfernando View Post
    I had several items not found but all is good
    Thanks!
    Well thats what I said I may have more items to remove than you. But thats no problems, if the file is missing there is nothing to remove. So it's safe that way.

    And this is only a simple script. If some one like they are free to make the scripts better.

  5. #5
    Join Date
    Jul 2005
    Beans
    161

    Re: HOWTO: Speed up shutdown / Reboot (dapper)

    thx, works great!
    Mint 7 AMD64, Mint 7 i386.

  6. #6
    Join Date
    Sep 2005
    Beans
    762

    Re: HOWTO: Speed up shutdown / Reboot (dapper)

    Replaced the scripts, done a small modification

  7. #7
    Join Date
    Nov 2006
    Location
    Scott City,MO.
    Beans
    58
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: Speed up shutdown / Reboot (dapper)

    Howdy,
    sounds cool,but I'm a little lost. how bout a how-to Thanks gypsy

  8. #8
    Join Date
    Sep 2005
    Beans
    762

    Re: HOWTO: Speed up shutdown / Reboot (dapper)

    Quote Originally Posted by mid_night gypsy View Post
    Howdy,
    sounds cool,but I'm a little lost. how bout a how-to Thanks gypsy
    Done, sorry that I did not included how to.

  9. #9
    Join Date
    Nov 2006
    Location
    Scott City,MO.
    Beans
    58
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: Speed up shutdown / Reboot (dapper)

    thanks, big improvement in shutdown/reboot

  10. #10
    Join Date
    Oct 2004
    Location
    Cupertino, CA
    Beans
    5,092
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Speed up shutdown / Reboot (dapper)

    Quote Originally Posted by 2shanfernando View Post
    Would it be possible to first check that the file exists before removing it so we can tell what was disabled/removed? Maybe create a generic function, parse the file to remove as the argument and output if it was disabled... I had several items not found but all is good
    Removing a nonexistent file just prints out a harmless error message anyway.

    It'd be even sweeter if we can get a script that parses the init scripts to determine if it does anything other than killing the process...
    * opens up his todo-when-bored list *
    Quote Originally Posted by tuxradar
    Linux's audio architecture is more like the layers of the Earth's crust than the network model, with lower levels occasionally erupting on to the surface, causing confusion and distress, and upper layers moving to displace the underlying technology that was originally hidden

Page 1 of 2 12 LastLast

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
  •