- Open /etc/rc.local file with this command:
vim /etc/rc.local
- Add your script that you want to run on boot process there, for example:
sh /home/ivan/iptables.sh echo 'Iptable Configured!'
- Review the comments included in that file and make sure a exit 0 is at the end.
- 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