Results 1 to 5 of 5

Thread: How do I run a program at boot time before the network is st

  1. #1
    Join Date
    Jun 2008
    Location
    North east Ohio
    Posts
    74

    Default How do I run a program at boot time before the network is st

    How do I run a program when the computer is booted; the program needs to run before the network is started

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,352
    Blog Entries
    15

    Default Re: How do I run a program at boot time before the network is st

    Quote Originally Posted by garyg the first
    How do I run a program when the computer is booted; the program needs to
    run before the network is started
    Hi
    Have a look down in /etc/init.d/ and the file "skeleton" then use this
    file to start you program (unless it already has it's own init file?).
    In the section called ### BEGIN INIT INFO, look for Required-Start,
    here change the $network to network and it will put the correct
    symlinks to ensure it runs before the network is loaded.

    Else you can just symlink to it in /etc/rc.d/rc3.d/ with a S02 prefix.
    This way can get broken though if your prerequisites change, much better
    to use the skeleton.

    --
    Cheers Malcolm (Linux Counter #276890)
    SLED 10 SP2 i586 Kernel 2.6.16.60-0.27-default
    up 5:03, 2 users, load average: 0.04, 0.08, 0.10
    GPU GeForce Go 6600 TE/6200 TE Version: 173.14.09


  3. #3
    Join Date
    Jun 2008
    Location
    North east Ohio
    Posts
    74

    Default Re: How do I run a program at boot time before the network i

    posted in error

  4. #4
    Join Date
    Jun 2008
    Location
    North east Ohio
    Posts
    74

    Default Re: How do I run a program at boot time before the network i

    Thank you for the information malcolm!

  5. #5

    Default Re: How do I run a program at boot time before the network i

    Put you stuff that needs to start in the file /etc/init.d/boot.local

Posting Permissions

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