Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  • sudo su
  • cd  /lib/systemd/system/
  • vi  /lib/systemd/system/politick.service
    Note
    titlepolitick.service
    [Unit]
    Description="Loads iptables and setsup DNS with our new dynamic IP"
    After=network.target
    Before=bind9.service

    [Service]
    ExecStart=/home/politick/PolitickStartup.sh
    
    [Install]
    WantedBy=multi-user.target
  • chmod 766 politick.service
  • cd     /etc/systemd/system/multi-user.target.wants/
  • ln -s  /lib/systemd/system/politick.service   /etc/systemd/system/multi-user.target.wants/politick.service
  • systemctl enable politick.service

  • cd ~politick
  • vi   /home/politick/PolitickStartup.sh
    Note
    titlePolitickStartup.sh
    #!/bin/sh
    LogFile=/home/politick/Startup.log
    echo date >> $LogFile
    /etc/firewall/CurrentFirewall.sh >> $LogFile