mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-28 07:21:36 +00:00
22 lines
345 B
SYSTEMD
22 lines
345 B
SYSTEMD
|
# myNode firewall service
|
||
|
# /etc/systemd/system/firewall.service
|
||
|
|
||
|
[Unit]
|
||
|
Description=myNode Firewall
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
ExecStart=/usr/bin/mynode_firewall.sh
|
||
|
User=root
|
||
|
Group=root
|
||
|
StandardOutput=syslog
|
||
|
StandardError=syslog
|
||
|
SyslogIdentifier=mynode
|
||
|
|
||
|
RestartSec=30
|
||
|
RemainAfterExit=yes
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|