[Unit] Description=iptables firewall service After=gdm.service [Service] Type=oneshot ExecStart=bash /opt/firewall/firewall2.sh start ExecStop=bash /opt/firewall/firewall2.sh stop RemainAfterExit=true StandardOutput=journal [Install] WantedBy=multi-user.target