2019-06-15 23:02:44 +00:00
|
|
|
# myNode firewall service
|
|
|
|
# /etc/systemd/system/firewall.service
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=myNode Firewall
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2020-03-30 23:19:59 +00:00
|
|
|
Type=simple
|
|
|
|
KillMode=control-group
|
2019-06-15 23:02:44 +00:00
|
|
|
ExecStart=/usr/bin/mynode_firewall.sh
|
|
|
|
User=root
|
|
|
|
Group=root
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
|
|
|
SyslogIdentifier=mynode
|
2020-03-30 23:19:59 +00:00
|
|
|
Restart=always
|
2019-06-15 23:02:44 +00:00
|
|
|
RestartSec=30
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|