Start the firewall on `fw4 restart` even if it was not previously started.
Ref: #9935
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
nft delete table inet fw4
rm -f $STATE
else
- die "The fw4 firewall does not appear to be loaded, try fw4 flush to delete all rules."
+ return 1
fi
} 1000>$LOCK
}
start "$1"
;;
stop)
- stop
+ stop || die "The fw4 firewall does not appear to be loaded, try fw4 flush to delete all rules."
;;
flush)
flush
;;
restart)
- stop
+ stop || rm -f $STATE
start
;;
print)