Results 1 to 4 of 4

Thread: Automatically Run Script on Boot at Runlevel 3

  1. #1

    Question Automatically Run Script on Boot at Runlevel 3

    I want to automatically run a script once the system has entered runlevel 3 during boot (the script requires network access). I know about /etc/init.d/boot.local but it's my understanding it's triggered in runlevel 1. I also know about init.d scripts but they seem a little daunting. What's the best approach?

    Thanks,
    Dan

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,391
    Blog Entries
    1

    Default Re: Automatically Run Script on Boot at Runlevel 3


  3. #3

    Default Re: Automatically Run Script on Boot at Runlevel 3

    Quote Originally Posted by dancablam View Post
    I want to automatically run a script once the system has entered runlevel 3 during boot (the script requires network access). I know about /etc/init.d/boot.local but it's my understanding it's triggered in runlevel 1. I also know about init.d scripts but they seem a little daunting. What's the best approach?
    Code:
    vi /etc/init.d/after.local
    chmod 744 /etc/init.d/after.local

  4. #4

    Default Re: Automatically Run Script on Boot at Runlevel 3

    Thanks guys. Both proved to be useful. Think I'll go with after.local since it's a bit simpler.

    Thanks again,
    Dan

Tags for this Thread

Posting Permissions

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