Results 1 to 3 of 3

Thread: Startup scripts

  1. #1
    Mentor
    Join Date
    Jun 2001
    Posts
    1,672

    Startup scripts

    If I want to run a script that runs automatically every time the computer is booted is it enough to write the script, copy it to /etc/init.d and make it executable? Or is there another file I have to register the script? Is there a difference in the process for RedHat, Suse, Debian?


  2. #2

    Re:Startup scripts

    Hello,
    I have done just that - of course I make it in the apropriate run level dir e.g /etc/rc3.d/ and it must start with an S##script name - where the S means it should start, and the ## is the order, e.g. S01 will be numeber 1 to start and S99 will be the last thing.

  3. #3

    Re:Startup scripts

    Ah I got it now, well for RedHat anyway.. chkconfig!!! Very nice and easy program to use... you might have to add a couple of lines to your script in /etc/init.d but check out the man page for chkconfig.

    Also look at:
    http://www.netadmintools.com/art94.html

Similar Threads

  1. Scripts
    By countach44 in forum Windows - General Topics
    Replies: 8
    Last Post: 05-25-2005, 10:47 PM
  2. Startup scripts question
    By Epsilon in forum Programming
    Replies: 3
    Last Post: 07-23-2003, 03:10 PM
  3. Can this be done with Scripts ??
    By Compunuts in forum Programming
    Replies: 14
    Last Post: 11-08-2002, 08:06 AM
  4. KDM startup scripts.
    By Kernel_Killer in forum Programming
    Replies: 0
    Last Post: 09-08-2002, 08:15 PM
  5. creating my own scripts
    By flandercan in forum Programming
    Replies: 9
    Last Post: 05-22-2002, 02:26 AM

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
  •