Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I have one boot image..... If I boot from that image, its installing everything. and in the rc3.d there is S55sshd. My question is: In this boot image I ...
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    12

    init scripts in the image file

    Hi,

    I have one boot image.....

    If I boot from that image, its installing everything.

    and in the rc3.d there is S55sshd.

    My question is:

    In this boot image I want to change the execution of sshd at last. some thing like S99sshd.

    How to do this? Kindly give your inputs.

    Thanks in advance

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Login as root and change the name of the file should do it. The init script executes by alphabetic order, so S99sshd would execute after other stuff. AFAIK, this is acceptable, but perhaps not advisable.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Apr 2009
    Posts
    12
    Thanks for your reply.

    My question is: How to change in the boot image itself not after booting.

    If I boot from the image, it should execute sshd at last after other stuffs.

    (How to change the boot image to change the process sequence in booting).

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    You don't change the boot image to change the init sequence. The init sequence has nothing to do with the boot image, in effect. You can have many boot images (kernels is what I presume you mean), but each will still use the same init scripts as it boots. The loaded kernel modules may differ, but the scripts in /etc/rc.d will be executed for the runlevel selected, regardless.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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