Search This Blog

Thursday, March 3, 2011

update-rc.d make script start at boot

  • Write the script and place it in /etc/init.d
  • change it to executable type
    chmod 755 /etc/init.d/your_script
  • add it to runlevels:
    update-rc.d your_script defaults
  • if you ever wanted to remove the script from boot, run:
    update-rc.d -f  your_script remove
  •  

No comments:

Post a Comment

If you like this post, please leave a comment :)