shorewall6/Makefile: fix to use reload instead of restart

Signed-off-by: Tuomo Soini <tis@foobar.fi>
This commit is contained in:
Tuomo Soini 2015-10-11 11:08:32 +03:00
parent a97b0194c1
commit 48c654fbed

View File

@ -8,11 +8,11 @@ all: $(VARDIR)/$(RESTOREFILE)
$(VARDIR)/$(RESTOREFILE): $(CONFDIR)/*
@/sbin/shorewall6 -q save >/dev/null; \
if \
/sbin/shorewall6 -q restart >/dev/null 2>&1; \
/sbin/shorewall6 -q reload >/dev/null 2>&1; \
then \
/sbin/shorewall6 -q save >/dev/null; \
else \
/sbin/shorewall6 -q restart 2>&1 | tail >&2; exit 1; \
/sbin/shorewall6 -q reload 2>&1 | tail >&2; exit 1; \
fi
clean: