Results 1 to 7 of 7

Thread: boot commands

  1. #1
    Join Date
    Dec 2004
    Beans
    8

    boot commands

    Hi,
    I recently installed ubuntu, i still use FC3 but was wondering is there a script like
    "rc.local" in debain based/ubuntu so i can run some commands at start up and if so what would the syntax be for it the same as rc.local or different.

    Thanks,
    Mike

  2. #2
    Join Date
    Oct 2004
    Location
    Arendal, Norway
    Beans
    343

    Re: boot commands

    use /etc/init.d/bootmisc.sh , or make your own
    Code:
    cd /etc/init.d/
    sudo touch rc.local
    sudo chmod +x rc.local
    sudo ln -s rc.local ../rcS.d/80rc.local

  3. #3
    Join Date
    Dec 2004
    Beans
    8

    Re: boot commands

    Quote Originally Posted by diebels
    use /etc/init.d/bootmisc.sh , or make your own
    Code:
    cd /etc/init.d/
    sudo touch rc.local
    sudo chmod +x rc.local
    sudo ln -s rc.local ../rcS.d/80rc.local
    thanks

  4. #4
    Join Date
    Oct 2004
    Location
    Prague, Czechia
    Beans
    437
    Distro
    Kubuntu 7.10 Gutsy Gibbon

    Re: boot commands

    Smoother way is to create /etc/rc.boot directory and place the scripts you want to startup on boot here.
    "Linux is like a wigwam. No Windows, no Gates and Apache inside!" - Unknown

    RFC 3092 - Etymology of "Foo"

  5. #5
    Join Date
    Dec 2004
    Beans
    36

    Re: boot commands

    Is that all it takes? By default anything in rc.boot will run on startup?

  6. #6
    Join Date
    Jun 2005
    Location
    Los Angeles, CA
    Beans
    18

    Re: boot commands

    any idea at what point in the boot up procedure
    they get executed? Is it after all the init.d scripts
    get executed?

  7. #7
    Join Date
    Aug 2005
    Location
    European Union
    Beans
    174
    Distro
    Lubuntu 12.04 Precise Pangolin

    Re: boot commands

    http://www.debian.org/doc/FAQ/ch-customizing.en.html

    Like all Unices, Ubuntu boots up by executing the program init. The configuration file for init (which is /etc/inittab) specifies that the first script to be executed should be /etc/init.d/rcS. This script runs all of the scripts in /etc/rcS.d/ by sourcing or forking subprocess depending on their file extension to perform initialization such as to check and to mount file systems, to load modules, to start the network services, to set the clock, and to perform other initialization. Then, for compatibility, it runs the files in /etc/rc.boot/ too.

    After completing the boot process, init executes all start scripts in a directory specified by the default runlevel (this runlevel is given by the entry for id in /etc/inittab). Like most System V compatible Unices, Linux has 7 runlevels:

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
  •