iptables: improve runit services.

If the rules files don't exist just return... this way the runsvdir log
is not cluttered with ENOENT messages.
This commit is contained in:
Juan RP 2014-12-02 20:57:59 +01:00
parent 1f91f41929
commit cf71568af0
3 changed files with 3 additions and 4 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
set -e
[ ! -e /etc/iptables/ip6tables.rules ] && return 0
ip6tables-restore /etc/iptables/ip6tables.rules
exec chpst -b ip6tables pause

View file

@ -1,4 +1,4 @@
#!/bin/sh
set -e
[ ! -e /etc/iptables/iptables.rules ] && return 0
iptables-restore /etc/iptables/iptables.rules
exec chpst -b iptables pause

View file

@ -1,7 +1,7 @@
# Template file for 'iptables'
pkgname=iptables
version=1.4.21
revision=4
revision=5
build_style=gnu-configure
build_options="systemd"
configure_args="--enable-libipq --enable-shared --enable-devel --enable-bpf-compiler"
@ -24,7 +24,6 @@ fi
pre_build() {
rm include/linux/types.h
}
post_install() {
# systemd services.
if [ "$build_option_systemd" ]; then