How can I configure a service to run at startup

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

ref: How can I configure a service to run at startup

Leave a Reply

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *