How to add rc.local support to Debian 4.0 servers

Filed under HOWTO\'s
Tagged as , , , ,

Debian 4.0 doesn’t have an /etc/rc.local file, so if you’re used to adding your own startup scripts to /etc/rc.local then you will need to add this file manually as follows:

8125ba20cc0988b669c84d11b39083fb000

This will create an /etc/init.d/rc.local (needed for Debian to work properly) file, and add a rule to restore the custom iptables rule that I have saved in the /root/ folder.

Then we make the file executable, and lastly update the rc environment to detect & use rc.local as a startup file. On the last line I have some numbers: “99“, “2“, “3“, “4” & “5” – this tells the update script to run the script very last the start-up sequence (i.e. #99), and then activate it for run levels 2,3,4 & 5.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • De.lirio.us
  • email
  • Furl
  • laaik.it
  • LinkedIn
  • MySpace
  • Slashdot
  • StumbleUpon
  • Technorati
  • YahooMyWeb
  • Print
  • TwitThis

Post a Comment

You must be logged in to post a comment.