Azitech

Azimout's Linux weblog

Startup scripts

with 7 comments

  1. put the script under /etc/init.d
  2. make it executable (chmod +x ___)
  3. run “sudo update-rc.d ___ defaults

To remove startup scripts, run “sudo update-rc.d ___ remove”

Powered by ScribeFire.

Advertisements

Written by azimout

23/11/2007 at 13:14

Posted in Howto

7 Responses

Subscribe to comments with RSS.

  1. otherwise, you can just add your commands to the script /etc/rc.local

    azimout

    12/05/2008 at 06:48

  2. Can you tell me where to go… what I need to learn to WRITE a script? Please assume I know nothing about this (but have a strong desire to learn!!!)
    Thanks!

    Tracy

    18/11/2008 at 19:56

  3. tracy, just do a google search for the terms “bash scripting primer”, you’ll find many guides… good luck

    azimout

    18/11/2008 at 20:53

  4. Thank you azitech and azimout (one and the same I suppose). I like the one point backwards and forwards post-style. “otherwise, you can just add your commands to the script /etc/rc.local” nice, I should have known…

    Skylar Saveland

    17/01/2009 at 22:54

  5. Does anyone know if this will run the script as user or root (sudo)?

    basskozz

    04/02/2009 at 02:33

  6. it will be run as root, basskozz

    azimout

    04/02/2009 at 09:06

  7. Thanks azimout,
    I’ve got another one for you,
    This method not only runs scripts at startup but also at shutdown, how can I setup a script to ONLY run at startup ?
    see also: http://www.linuxquestions.org/questions/linux-general-1/wol-startup-script-702284/
    Thanks again for the help,
    -BassKozz

    basskozz

    04/02/2009 at 18:59


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: