Tuesday, April 12, 2016

Ubuntu how to config sh file bootstart ?

  1. Open /etc/rc.local file with this command:
vim /etc/rc.local
  1. Add your script that you want to run on boot process there, for example:
sh /home/ivan/iptables.sh echo 'Iptable Configured!'
  1. Review the comments included in that file and make sure a exit 0 is at the end.
  2. Save the files. And your script will run on boot process.



THanks TO:
http://askubuntu.com/questions/9382/how-can-i-configure-a-service-to-run-at-startup

No comments:

Post a Comment