- Edit /etc/rc.local file with this command:
sudo 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 file, and your script will run on boot process.
How can I configure a service to run at startup
Categories: