Last active
December 1, 2016 19:26
-
-
Save TimoDJatomika/5ac58ba29708a284e7b9cc54fb10b3d4 to your computer and use it in GitHub Desktop.
Put the script into /etc/systemd/system and name it firewall.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Firewall | |
[Service] | |
Type=oneshot | |
ExecStart=/root/firewall.sh start | |
ExecStop=/root/firewall.sh stop | |
RemainAfterExit=yes | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment