Page tree
Skip to end of metadata
Go to start of metadata
  • sudo su
  • cd  /lib/systemd/system/
  • vi  /lib/systemd/system/politick.service

    politick.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



  • No labels
Write a comment…