fix gentoo OpenRC init script
This commit is contained in:
parent
d4be91c9f0
commit
a532066897
1 changed files with 6 additions and 3 deletions
|
|
@ -1018,18 +1018,21 @@ INSTANCE_NAME="Iptables for OpenVPN"
|
||||||
|
|
||||||
description="IPTables for OpenVPN"
|
description="IPTables for OpenVPN"
|
||||||
|
|
||||||
|
depends() {
|
||||||
|
need openvpn
|
||||||
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
ebegin "Starting $INSTANCE_NAME"
|
ebegin "Starting ${SVCNAME}"
|
||||||
/etc/iptables/add-openvpn-rules.sh
|
/etc/iptables/add-openvpn-rules.sh
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
ebegin "Stopping $INSTANCE_NAME"
|
ebegin "Stopping ${SVCNAME}"
|
||||||
/etc/iptables/rm-openvpn-rules.sh
|
/etc/iptables/rm-openvpn-rules.sh
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
ENDOFFILE
|
ENDOFFILE
|
||||||
|
|
||||||
chmod +x /etc/init.d/iptables-openvpn
|
chmod +x /etc/init.d/iptables-openvpn
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue