script to run at boot

Ask a Question related to Debian, Design and Development.

  1. #1

    Default script to run at boot

    Other Linuxes have a p;ace to put a file that is to be run after the
    usual bootup, where I can put extra commands that are also to be run
    at every boot.

    Is there such a place in Debian?

    -- hendrik


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    hashi@pooq.com Guest

  2. Similar Questions and Discussions

    1. 6.1 script not working on 7.0 server. Script used towork!
      I've a problem with some coldfusion 6.1 scripts running on a server with coldfusion 7. It seems that it isn't accepting the hidden type for the tag...
    2. Creating a boot diskette that does nothing but boot from hard disk
      Is it possible to create a boot diskette that does nothing more than boot from a specific hard disk? How would I go about doing so? If I can't...
    3. ksh script - Preventing multiple runs of a particular script
      I am having trouble with a ksh script I am writing. I need to make sure that the script is not already running when it is kicked off in cron. ...
    4. rc boot script problem
      I have a reboot script, /etc/rc2.d/S99dbora.sh which is a link to /etc/init.d/dbora.sh. This script expects a "start" message from rc2 at boot...
    5. Execute shell script from a perl script
      Hi, How can I executed a Unix shell script from a Perl script. The shell script is a dump of a oracle table to a file. The perl script is for...
  3. #2

    Default Re: script to run at boot

    On Fri, August 01 at 3:02 PM EDT
    [email]hashi@pooq.com[/email] wrote:
    >Other Linuxes have a p;ace to put a file that is to be run after the
    >usual bootup, where I can put extra commands that are also to be run
    >at every boot.
    >
    >Is there such a place in Debian?
    1)make a file /etc/init.d/rc.local
    there may be a different suggested name for the file at this point,
    but rc.local is used by other linuxes last time I checked
    2)give it the commands you want
    3)chown root /etc/init.d/rc.local #do these only if perms are not
    correct
    4)chgrp root /etc/init.d/rc.local
    4)chmod 755 /etc/init.d/rc.local
    5)update-rc.d rc.local start 99 2 .
    yes a period at the end

    I think this will put it in /etc/rc2.d as S99rc.local but you may need
    to read the update-rc.d man page as I am not an expert on it.

    HTH

    Shawn Lamson
    [email]shawn.lamson@verizon.net[/email]


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Shawn Lamson Guest

  4. #3

    Default Re: script to run at boot

    [email]hashi@pooq.com[/email] writes:
    > Other Linuxes have a p;ace to put a file that is to be run after the
    > usual bootup, where I can put extra commands that are also to be run
    > at every boot.
    >
    > Is there such a place in Debian?
    Put the file in /etc/init.d (copy /etc/init.d/skeleton if you need
    to; it should have a somewhat similar structure to that file). Then
    make links from there to /etc/rcS.d or /etc/rc[2345].d, naming the
    file appropriately for where you want your script to run. See the
    documentation in /usr/share/doc/sysvinit for more details.

    --
    David Maze [email]dmaze@debian.org[/email] [url]http://people.debian.org/~dmaze/[/url]
    "Theoretical politics is interesting. Politicking should be illegal."
    -- Abra Mitchell


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    David Z Maze Guest

  5. #4

    Default Re: script to run at boot

    On Fri, 01 Aug 2003 21:30:12 +0200
    Shawn Lamson <shawn.lamson@verizon.net> wrote:
    > 3)chown root /etc/init.d/rc.local #do these only if perms are not
    > correct
    > 4)chgrp root /etc/init.d/rc.local
    Nifty trick:
    chown root:root <file>
    --
    -johann koenig
    now playing: Los Cabriolas - Leaving Town
    Today is Prickle-Prickle, the 68th day of Confusion in the YOLD 3169
    My public pgp key: [url]http://mental-graffiti.com/pgp/johannkoenig.pgp[/url]

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.2 (GNU/Linux)

    iD8DBQE/K+AOFk4duwOzQpURAhQcAJ96w0ymKBH2Kt9D1K9uk8tsIeoF1Q CeN4u7
    /S2duLOcg2GaoE81x433j04=
    =oXtE
    -----END PGP SIGNATURE-----

    Johann Koenig Guest

  6. #5

    Default Re: script to run at boot

    On Fri, Aug 01, 2003 at 03:02:19PM -0400, [email]hashi@pooq.com[/email] wrote:
    > Other Linuxes have a p;ace to put a file that is to be run after the
    > usual bootup, where I can put extra commands that are also to be run
    > at every boot.
    >
    > Is there such a place in Debian?
    Yes, /etc/rcS.d

    Read the README there.

    --
    Danie Roux *shuffle* Adore Unix



    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Danie Roux Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139